Error during deployment

I try to render my nodejs project it was showing this error.

Oct 29 11:21:44 PM at Module.load (internal/modules/cjs/loader.js:933:32)
Oct 29 11:21:44 PM at Function.Module._load (internal/modules/cjs/loader.js:774:14)
Oct 29 11:21:44 PM at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:72:12) {
Oct 29 11:21:44 PM code: ‘MODULE_NOT_FOUND’,
Oct 29 11:21:44 PM requireStack: [ ‘/opt/render/project/src/app.js’ ]
Oct 29 11:21:44 PM }


The error shows the code is looking for an app.js in the root of your repo. You’ll need to ensure you’re referencing the file correctly (i.e. it’s in the right place). In addition, Render uses Linux with a case-sensitive filesystem, so app.js would be a different file to App.js.


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