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.