Hi All,
I’m trying to get the steps proper so can replicate issue, but it is a bit messy. This is the problem.
(1) Have main app which has package aldeed:simple-schema and aldeed:collection2
(2) Have a package which uses aldeed:simple-schema and aldeed:collection2, but also uses aldeed:autoform.
(3) In the package.js, have line…
api.use([‘aldeed:simple-schema’, ‘aldeed:collection2’, ‘aldeed:autoform’], [‘client’, ‘server’]);
The problem was - When i do this, meteor rebuilds the application but uses autoform version 0.16.0. It also refuses to update despite several add/remove/update aldeed:autoform@5.8.1 attempts. Meteor was quite helpful here as it pointed out the 0.16.0 was incompatible with Meteor 0.9 onwards.
I finally got it to work by -
a. removing autoform using meteor remove.
b. edited .meteor/versions to remove the version information.
c. remove aldeed: autoform from the package.
d. did clean install on the base application of autoform.
e. then add the autoform into the package.
Finally - my question - should all packages used in my app, even if only in a sub package, be explicitly added into the top level application, or is meteor add/remove dodgy with sub package dependencies?
TL;DR - if declaring a new package in api.use in sub package, the wrong version of package gets installed. Am i doing this wrong?