Replies: 6 comments 12 replies
-
Hey @Shivamy2! 👋🏻 We will definitively more information to be able to help you. |
Beta Was this translation helpful? Give feedback.
-
i am also getting the same error |
Beta Was this translation helpful? Give feedback.
-
same here, i was getting Cannot find module '/app/server.js', followed stackoverflow article and added a procfile where specified the path to the file web: node src/server.js, so now i get Cannot find module '/app/src/server.js', why the /app, how to specify that that the main file is not in the /app? |
Beta Was this translation helpful? Give feedback.
-
if you're using YARN as your pkg manager and typescript or even js, then; In my case, I wrote a stupid instruction to use npm instead of yarn in my start script. Its possible npm couldn't read from the yarn.lock file because I included a package I never installed in my project, npm couldn't depict that and the logs from Heroku (sorry can't reproduce) looked like the image from @Shivamy2. I changed to "yarn build && node " and from the logs on Heroku, yarn was able to depict I didn't install a pkg. in Procfile in package.json "scripts": { Hope this helps! |
Beta Was this translation helpful? Give feedback.
-
Any solution? |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Not able to host on Heroku
package.json
Beta Was this translation helpful? Give feedback.
All reactions