Facing error in Deploy

Aug 11 08:05:59 AM - /opt/render/project/src/app.js
Aug 11 08:05:59 AM at Function.Module._resolveFilename (internal/modules/cjs/loader.js:885:15)
Aug 11 08:05:59 AM at Function.Module._load (internal/modules/cjs/loader.js:730:27)
Aug 11 08:05:59 AM at Module.require (internal/modules/cjs/loader.js:957:19)
Aug 11 08:05:59 AM at require (internal/modules/cjs/helpers.js:88:18)
Aug 11 08:05:59 AM at Object. (/opt/render/project/src/app.js:18:24)
Aug 11 08:05:59 AM at Module._compile (internal/modules/cjs/loader.js:1068:30)
Aug 11 08:05:59 AM at Object.Module._extensions…js (internal/modules/cjs/loader.js:1097:10)
Aug 11 08:05:59 AM at Module.load (internal/modules/cjs/loader.js:933:32)
Aug 11 08:05:59 AM at Function.Module._load (internal/modules/cjs/loader.js:774:14)
Aug 11 08:05:59 AM at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:72:12) {
Aug 11 08:05:59 AM code: ‘MODULE_NOT_FOUND’,
Aug 11 08:05:59 AM requireStack: [ ‘/opt/render/project/src/app.js’ ]
Aug 11 08:05:59 AM }

I am getting this error while deploying. What’s the cause and what’s the solution. I am using npm install as build command and node app.js as run command. I am attaching my files and folder structure in github.

Hi,

I’ve replied to the ticket you also opened. Let’s keep the conversation in one place (on the ticket). Then you can update this post when we get to the solution.

Alan

1 Like

That definitely helped. Updated my package.json to
“engines”: {
“node”: “>=16 <17”
},
and it worked. Thank you for the help.


and MongoParseError: Invalid scheme, expected connection string to start with “mongodb://” or “mongodb+srv://”
I am getting this error while deploying. What’s the cause and what’s the solution. I am using npm install as build command and npm start as Start Command. I am attaching my files and folder structure in github. Please help me

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