Benrobo
Benrobo
RRailway
Created by Benrobo on 7/28/2024 in #✋|help
Error: Cannot find module '/app/dist/server.js'
here are the logs, btw, it only crash during deployment and not during build:
Starting Container

container event container died

node:internal/modules/cjs/loader:1189

throw err;

^



Error: Cannot find module '/app/dist/server.js'

at Module._resolveFilename (node:internal/modules/cjs/loader:1186:15)

at Module._load (node:internal/modules/cjs/loader:1012:27)

at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:158:12)

at node:internal/main/run_main_module:30:49 {

code: 'MODULE_NOT_FOUND',

requireStack: []

}



Node.js v22.2.0
Starting Container

container event container died

node:internal/modules/cjs/loader:1189

throw err;

^



Error: Cannot find module '/app/dist/server.js'

at Module._resolveFilename (node:internal/modules/cjs/loader:1186:15)

at Module._load (node:internal/modules/cjs/loader:1012:27)

at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:158:12)

at node:internal/main/run_main_module:30:49 {

code: 'MODULE_NOT_FOUND',

requireStack: []

}



Node.js v22.2.0
5 replies