Esra Al-Abduljabar
Esra Al-Abduljabar

Reputation: 1

Build successful when deploying web application on heroku but can not view site because I get an error, please see images below

[message from Heroku error log][1]

$ heroku logs --tail Error: Cannot find module './toString' Require stack:

Upvotes: 0

Views: 175

Answers (2)

Qiyuan Liu
Qiyuan Liu

Reputation: 27

Please check your package.json file. If you found any code under devDependencies. Move them under the dependencies section.

Upvotes: 0

MrHeadshotzz
MrHeadshotzz

Reputation: 11

I have had this issue in the past and it was pretty annoying for me as well. It seems like heroku cannot find a node module. I don't know if this would work for you, but in your .gitignore make sure you remove /node_modules. I think the issue is that heroku cannot find the node module.

Upvotes: 0

Related Questions