Is the missing module is a dev-dependancy? In such case you won't see any problem locally, whilst Heroku doesn't install dev-dependancies, and you get "Module not found" error. To fix this, simply uninstall the dev-dependancy and reinstall the module with --save flag