Open ghost opened 9 years ago
Getting the same error.
There is an easy fix, you just need to update the call like described in the error.
// packages/npm-container/package.js - OLD VERSION
Package.onUse(function(api) {
api.add_files('index.js', 'server');
api.add_files('../../packages.json', 'server', {
isAsset: true
});
});
// packages/npm-container/package.js - NEW VERSION
Package.onUse(function(api) {
api.add_files('index.js', 'server');
api.addAssets('../../packages.json', 'server');
});
I published a updated version for this. Simply updating meteorhacks:npm
won't work here. Need to follow these steps.
rm -rf packages/npm-container
meteor remove npm-container
meteor update meteorhacks:npm
meteor
Basically, it removes the npm-container
and then update meteorhacks:npm
Oops! Didn't realize this would break things. Sorry about that.
That's fine. Anyway, we have to update it :)
Those steps fit it for me, thanks!
Stumbled upon this issue. I think the Meteor upgrade guide should be updated. In this guide, it says:
Package authors must make this change to their package.js files before they can publish from Meteor 1.2, but existing published packages will continue to work.
Obviously, this is not the case for all packages.
+1 for resolution provided by @arunoda
+1
This shouldn't be the case in meteor 1.2.1 anymore.
It's working in meteor 1.2.1.
Trying to upgrade from rc10 to rc11 results in the following error: