Even though the build is successful, the deploy is getting failed

I’m new to this and trying to deploy my web app using node.js but unable to


It looks like your app is crashing while starting. Is your code working locally?

Jérémy, Render Support

Yes, It’s working fine in localhost

Are there no more logs? Common errors when things work locally and not on Render are for example wrong environmental variables or connection strings, e.g. trying to connect to a local version of postgres, timing out or making requests to unreachable endpoints. I would suggest going over things like that.

You have a MODULE_NOT_FOUND error popping up in your last deploy:

Dec 22 08:38:52 AM Error: Cannot find module 'dotenv'

MODULE_NOT_FOUND errors imply you haven’t installed your dependencies. Either at all, (e.g. missing npm install) or that the package is in your devDependencies and you need to either move it to dependencies or include the devDependencies in your install [https://docs.npmjs.com/cli/v8/commands/npm-install#:~:text=With%20the%20--production,production%3Dfalse.]

Jérémy, Render Support

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.