- /opt/render/project/src/index.js

==> Starting service with ‘node index.js’
Dec 1 06:20:21 PM internal/modules/cjs/loader.js:888
Dec 1 06:20:21 PM throw err;
Dec 1 06:20:21 PM ^
Dec 1 06:20:21 PM
Dec 1 06:20:21 PM Error: Cannot find module ‘./routes’
Dec 1 06:20:21 PM Require stack:
Dec 1 06:20:21 PM - /opt/render/project/src/index.js
Dec 1 06:20:21 PM at Function.Module._resolveFilename (internal/modules/cjs/loader.js:885:15)
Dec 1 06:20:21 PM at Function.Module._load (internal/modules/cjs/loader.js:730:27)
Dec 1 06:20:21 PM at Module.require (internal/modules/cjs/loader.js:957:19)
Dec 1 06:20:21 PM at require (internal/modules/cjs/helpers.js:88:18)
Dec 1 06:20:21 PM at Object. (/opt/render/project/src/index.js:5:16)
Dec 1 06:20:21 PM at Module._compile (internal/modules/cjs/loader.js:1068:30)
Dec 1 06:20:21 PM at Object.Module._extensions…js (internal/modules/cjs/loader.js:1097:10)
Dec 1 06:20:21 PM at Module.load (internal/modules/cjs/loader.js:933:32)
Dec 1 06:20:21 PM at Function.Module._load (internal/modules/cjs/loader.js:774:14)
Dec 1 06:20:21 PM at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:72:12) {
Dec 1 06:20:21 PM code: ‘MODULE_NOT_FOUND’,
Dec 1 06:20:21 PM requireStack: [ ‘/opt/render/project/src/index.js’ ]
Dec 1 06:20:21 PM }
Dec 1 06:21:23 PM ==> Starting service with ‘node index.js’
Dec 1 06:21:24 PM internal/modules/cjs/loader.js:888
Dec 1 06:21:24 PM throw err;
Dec 1 06:21:24 PM ^
Dec 1 06:21:24 PM
Dec 1 06:21:24 PM Error: Cannot find module ‘./routes’
Dec 1 06:21:24 PM Require stack:
Dec 1 06:21:24 PM - /opt/render/project/src/index.js
Dec 1 06:21:24 PM at Function.Module._resolveFilename (internal/modules/cjs/loader.js:885:15)
Dec 1 06:21:24 PM at Function.Module._load (internal/modules/cjs/loader.js:730:27)
Dec 1 06:21:24 PM at Module.require (internal/modules/cjs/loader.js:957:19)
Dec 1 06:21:24 PM at require (internal/modules/cjs/helpers.js:88:18)
Dec 1 06:21:24 PM at Object. (/opt/render/project/src/index.js:5:16)
Dec 1 06:21:24 PM at Module._compile (internal/modules/cjs/loader.js:1068:30)
Dec 1 06:21:24 PM at Object.Module._extensions…js (internal/modules/cjs/loader.js:1097:10)
Dec 1 06:21:24 PM at Module.load (internal/modules/cjs/loader.js:933:32)
Dec 1 06:21:24 PM at Function.Module._load (internal/modules/cjs/loader.js:774:14)
Dec 1 06:21:24 PM at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:72:12) {
Dec 1 06:21:24 PM code: ‘MODULE_NOT_FOUND’,
Dec 1 06:21:24 PM requireStack: [ ‘/opt/render/project/src/index.js’ ]
Dec 1 06:21:24 PM }
Dec 1 06:22:54 PM ==> Starting service with ‘node index.js’
Dec 1 06:22:55 PM internal/modules/cjs/loader.js:888
Dec 1 06:22:55 PM throw err;
Dec 1 06:22:55 PM ^
Dec 1 06:22:55 PM
Dec 1 06:22:55 PM Error: Cannot find module ‘./routes’
Dec 1 06:22:55 PM Require stack:
Dec 1 06:22:55 PM - /opt/render/project/src/index.js
Dec 1 06:22:55 PM at Function.Module._resolveFilename (internal/modules/cjs/loader.js:885:15)
Dec 1 06:22:55 PM at Function.Module._load (internal/modules/cjs/loader.js:730:27)
Dec 1 06:22:55 PM at Module.require (internal/modules/cjs/loader.js:957:19)
Dec 1 06:22:55 PM at require (internal/modules/cjs/helpers.js:88:18)
Dec 1 06:22:55 PM at Object. (/opt/render/project/src/index.js:5:16)
Dec 1 06:22:55 PM at Module._compile (internal/modules/cjs/loader.js:1068:30)
Dec 1 06:22:55 PM at Object.Module._extensions…js (internal/modules/cjs/loader.js:1097:10)
Dec 1 06:22:55 PM at Module.load (internal/modules/cjs/loader.js:933:32)
Dec 1 06:22:55 PM at Function.Module._load (internal/modules/cjs/loader.js:774:14)
Dec 1 06:22:55 PM at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:72:12) {
Dec 1 06:22:55 PM code: ‘MODULE_NOT_FOUND’,
Dec 1 06:22:55 PM requireStack: [ ‘/opt/render/project/src/index.js’ ]
Dec 1 06:22:55 PM }

Hi there,

Thanks for reaching out.

The part to note in that error is:

Error: Cannot find module ‘./routes’

You’ll need to check that file is being referenced correctly. It’s also worth noting that Render instances have case-sensitive filesystems, so routes.js would be different to Routes.js

Hope that helps

Alan

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