Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Node cannot find module when deploying to Heroku #15

Open
bdyetton opened this issue Jun 23, 2016 · 1 comment
Open

Node cannot find module when deploying to Heroku #15

bdyetton opened this issue Jun 23, 2016 · 1 comment

Comments

@bdyetton
Copy link

Thanks for the great module!
I am importing your module in my program using var mturkApi = require('mturk-api') and it all works find on my local machine. When I deploy my app to heroku, npm throws an error 'Error: cannot find module 'mturk-api'
Any idea what is going on here?
Thanks!

@bdyetton
Copy link
Author

So i have a work around. For some reason your module does not get commited to git correctly and hence does not get deployed to heroku correctly. Is there something strange with your npmignore? Here is what I used for reference:
http://stackoverflow.com/questions/23987571/node-js-app-works-locally-but-heroku-says-missing-module

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant