I want to resolve this issue everytime i try to deploy my it keeps giving me the same error

node:internal/modules/cjs/loader:1146

Jun 7 11:28:01 AM throw err;

Jun 7 11:28:01 AM ^

Jun 7 11:28:01 AM

Jun 7 11:28:01 AMError: Cannot find module ‘/opt/render/project/src/app.ts’

Jun 7 11:28:01 AM at Module._resolveFilename (node:internal/modules/cjs/loader:1143:15)

Jun 7 11:28:01 AM at Module._load (node:internal/modules/cjs/loader:984:27)

Jun 7 11:28:01 AM at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:135:12)

Jun 7 11:28:01 AM at node:internal/main/run_main_module:28:49 {

Jun 7 11:28:01 AM code: ‘MODULE_NOT_FOUND’,

Jun 7 11:28:01 AM requireStack:

Jun 7 11:28:01 AM}

Hi there,

/opt/render/project/src/ is the root directory of your Render service, so the error is informing you that the service cannot find an app.ts file at the root of the project.

Let us know if you have any further questions.

Regards,
Mike


Render Support Engineer, MT (UTC-6, UTC-7 in Winter)