Skip to content Skip to sidebar Skip to footer

Cannot Find Mongodb Module When Deploying To Heroku

When I deploy my node.js server to Heroku it throws the following error: 2018-12-27T10:10:28.370131+00:00 app[web.1]: Error: Cannot find module './lib/utils' 2018-12-27T10:10:2

Solution 1:

Not ignoring the node_modules folder when pushing to heroku master seem to have been the problem.

Removing the node_modules folder and then pushing to master did the trick.

Post a Comment for "Cannot Find Mongodb Module When Deploying To Heroku"