Error: Cannot find module ‘/opt/render/project/src/app.js’
Nov 15 12:10:19 PM at Function.Module._resolveFilename (internal/modules/cjs/loader.js:885:15)
Nov 15 12:10:19 PM at Function.Module._load (internal/modules/cjs/loader.js:730:27)
Nov 15 12:10:19 PM at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:72:12)
Nov 15 12:10:19 PM at internal/main/run_main_module.js:17:47 {
Nov 15 12:10:19 PM code: ‘MODULE_NOT_FOUND’,
Nov 15 12:10:19 PM requireStack:
Nov 15 12:10:19 PM }
Hey,
‘MODULE_NOT_FOUND’ isn’t specific to Render and simply indicates that your code is looking at the wrong directory and/or that you’ve forgotten to install some dependencies during the build phase, whether that’s because they’ve been forgotten in your package.json file or because they’re perhaps in your devDependencies
.
Jérémy.
Render Support, UTC+3
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.