I am trying to move some projects to 1.9, but any project that has the latest version of aldeed:autoform stubbornly tries to downgrade jquery, and I don’t get why
While selecting package versions:
error: Conflict: Constraint email@example.com is not satisfied by jquery 3.0.0.
Constraints on package "jquery":
* firstname.lastname@example.org <- top level
* email@example.com || 3.0.0 <- blaze 2.3.4 <- accounts-base 1.5.0 <- accounts-password 1.5.3
* firstname.lastname@example.org || 3.0.0 <- blaze 2.3.4 <- aldeed:autoform 6.3.0
* email@example.com <- aldeed:autoform 6.3.0
Only way I was able to fix this was by cloning aldeed:autoform and changing the version of jquery in package.js to explicitly require firstname.lastname@example.org
If anybody has a better idea I would love to know
Meteor 1.8 introduced what is basically the
!important of package versioning.
So in your
.meteor/packages, you can add an
! to the end of a package to say, I want this version and please ignore version constraints from packages:
So in your case it would be:
More info from History.md:
.meteor/packages file supports a new syntax for overriding problematic version constraints from packages you do not control.
If a package version constraint in
.meteor/packages ends with a
! character, any other (non-
! ) constraints on that package elsewhere in the application will be weakened to allow any version greater than or equal to the constraint, even if the major/minor versions do not match.
For example, using both CoffeeScript 2 and
practicalmeteor:mocha used to be impossible (or at least very difficult) because of this
api.versionsFrom("1.3") statement, which unfortunately constrained the
coffeescript package to version 1.x. In Meteor 1.8, if you want to update
coffeescript to 2.x, you can relax the
practicalmeteor:mocha constraint by putting
email@example.com_1! # note the !
.meteor/packages file. The
coffeescript version still needs to be at least 1.x, so that
practicalmeteor:mocha can count on that minimum. However,
practicalmeteor:mocha will no longer constrain the major version of
coffeescript , so
firstname.lastname@example.org_1 will work.