Error: Cannot find module '/app/src/app.js' on deploy

i have this script on my package.json "start": "cross-env NODE_ENV=production node ./src/app.js",
9 Replies
Percy
Percy2y ago
Project ID: N/A
Percy
Percy2y ago
⚠️ experimental feature
formigueiro
formigueiroOP2y ago
ID: 072ec81
Brody
Brody2y ago
that's not the id btw also, you probably don't need cross-env as NODE_ENV will be set to production on railway by default. so just try your start command as node src/app.js
formigueiro
formigueiroOP2y ago
i think that script it wrong. i fixed here, i will try
Brody
Brody2y ago
just try what I said
formigueiro
formigueiroOP2y ago
formigueiro
formigueiroOP2y ago
worked ty
Brody
Brody2y ago
bruh why are people so stubborn
Want results from more Discord servers?
Add your server