I am trying to move some code out my app and into packages, but when I resolve the dependencies of my packages I end up losing dependencies for all the client-side files of my app that are not in the package.
My browser console log fills up with nearly 100 error messages like :
Uncaught ReferenceError: Template is not defined Uncaught ReferenceError: Meteor is not defined Uncaught ReferenceError: Mongo is not defined Uncaught ReferenceError: App is not defined
(the server-side log shows no errors)
How can the settings in a package kill the ones specified for the whole app?
Is it obvious what I must be doing wrong, or is more info required.
FWIW : If I move my two packages from the
packages directory to a directory called
modules the entire application works correctly.