Hi
I am making my app and extracted part of codes as meteor package that depends some npm modules.
It works fine as before extracting, but when I do ‘meteor npm prune’, the following error occurred.
Error: Can't find npm module 'byline'. Did you forget to call 'Npm.depends' in package.js within the 'modules-runtime' package?
byline is the module that my package depends on.
Of course I wrote Npm.depends for the module in my package.
‘meteor npm install’ does not install the module.
How can I install the module for the package?
Do I need to write dependencies in package.json in my app, too?
[supplement]
I had used import statement to use npm package and got the error.
Npm.require solved this issue.
Is this right solution?
Thanks.