Not sure why I am not able to deploy

I am not being able to deploy, after I changed I file on Github. It appeared to seem successful, but I got this error:
node:internal/modules/cjs/loader:1146

Apr 24 07:40:19 PM throw err;

Apr 24 07:40:19 PM ^

Apr 24 07:40:19 PM

Apr 24 07:40:19 PMError: Cannot find module ‘/opt/render/project/src/start’

Apr 24 07:40:19 PM at Module._resolveFilename (node:internal/modules/cjs/loader:1143:15)

Apr 24 07:40:19 PM at Module._load (node:internal/modules/cjs/loader:984:27)

Apr 24 07:40:19 PM at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:135:12)

Apr 24 07:40:19 PM at node:internal/main/run_main_module:28:49 {

Apr 24 07:40:19 PM code: ‘MODULE_NOT_FOUND’,

Apr 24 07:40:19 PM requireStack:

Apr 24 07:40:19 PM}

Apr 24 07:40:19 PM

Apr 24 07:40:19 PMNode.js v20.12.2

What should I consider or exactly what module is it refering to?

The relevant line is;

Error: Cannot find module ‘/opt/render/project/src/start’

It is looking for a file named start in the root directory of your repository (/working directory), which according to the error, doesn’t exist.

Thanks Jason, I have not really understand that part. I will have a look into why there should be a start file. Is there by any chance an alternative, or how could I share more? I corrected a command which was causing this error. Now it should be working fine but it does not deploy.

It got fixed somehow

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