Hi,
I just recently upgraded to Meteor 1.3 and I’m using the twit npm module. It works fine on localhost but when I deploy it to modulus (it builds successfully) and run it there, I get this error message:
Error: Can’t find npm module ‘twit’. Did you forget to call ‘Npm.depends’ in package.js within the ‘modules-runtime’ package?
I’ve rerun meteor npm install --save twit and it works flawlessly on my local machine. I even tried changing my code from:
import twit from 'twit';
to this:
var twit = require(‘twit’);
But it still throws the error when I run it on modulus. Does this sound like a modulus issue or a meteor issue? I googled this error message and I see a lot of advice on resetting the meteor project, but it sounds like those issues were on the local machine not a deploy server, so I’m having the opposite issue and I’m at a loss. Any help would be appreciated.
Thanks!
Don