how to request angular version that is lower than default with angular-meteor

245 views Asked by At

I'm trying to use a third party commercial JS library in my angular-meteor project The vendor just informed me, that they only support angular version 1.3.11

Is there a way to install urigu:angular-meteor with this specific version of angular?

1

There are 1 answers

0
oshai On BEST ANSWER

According to the meteor documentation you can set a version using @= so it should be like that:

meteor add angularjs:angular@=1.3.11

However, doing so you might have versions conflict like that:

>meteor add angularjs:angular@=1.3.11
 => Errors while adding packages:

While selecting package versions:
error: Potentially incompatible change required to top-level dependency: urigo:angular 0.6.8, was 0.8.4.
Constraints on package "urigo:angular":

To allow potentially incompatible changes to top-level dependencies, you must pass --allow-incompatible-update on the command line.

So you have here few alternatives:

  • Downgrade urigo:angular: I think this is not a good option, there might be major changes since the package is pretty new.
  • Convince the vendor to "take the risk"

Since angular is much more mature that angular-meteor and 1.3.11 to 1.3.15 should not have breaking changes, this option have a clear advantage.

If you do wish to use the first option, add --allow-incompatible-update to the command line.