R
Railway13mo ago
sam

service deployment failed

This is my first time deploying an app to railway and i keep getting this error when i try to deploy
6 Replies
Percy
Percy13mo ago
Project ID: afef7d38-e9a0-4513-a27f-e25fb5916551
sam
samOP13mo ago
afef7d38-e9a0-4513-a27f-e25fb5916551
lasse
lasse13mo ago
What is your error?
sam
samOP13mo ago
Deploymant failed duting build process
[email protected] start node ./bin/www
node:internal/modules/cjs/loader:1051 throw err; ^ Error: Cannot find module '../controllers/itemcontroller' Require stack: - /app/routes/main.js - /app/app.js - /app/bin/www at Module._resolveFilename (node:internal/modules/cjs/loader:1048:15) at Module._load (node:internal/modules/cjs/loader:901:27) at Module.require (node:internal/modules/cjs/loader:1115:19) at require (node:internal/modules/helpers:130:18) at Object.<anonymous> (/app/routes/main.js:4:24) at Module._compile (node:internal/modules/cjs/loader:1241:14) at Module._extensions..js (node:internal/modules/cjs/loader:1295:10) at Module.load (node:internal/modules/cjs/loader:1091:32) at Module._load (node:internal/modules/cjs/loader:938:12) at Module.require (node:internal/modules/cjs/loader:1115:19) { code: 'MODULE_NOT_FOUND', requireStack: [ '/app/routes/main.js', '/app/app.js', '/app/bin/www' ] } Node.js v20.6.1 npm WARN config production Use --omit=dev instead.
[email protected] start node ./bin/www
node:internal/modules/cjs/loader:1051 throw err; ^ Error: Cannot find module '../controllers/itemcontroller' Require stack: - /app/routes/main.js - /app/app.js - /app/bin/www at Module._resolveFilename (node:internal/modules/cjs/loader:1048:15) at Module._load (node:internal/modules/cjs/loader:901:27) at Module.require (node:internal/modules/cjs/loader:1115:19) at require (node:internal/modules/helpers:130:18) at Object.<anonymous> (/app/routes/main.js:4:24) at Module._compile (node:internal/modules/cjs/loader:1241:14) at Module._extensions..js (node:internal/modules/cjs/loader:1295:10) at Module.load (node:internal/modules/cjs/loader:1091:32) at Module._load (node:internal/modules/cjs/loader:938:12) at Module.require (node:internal/modules/cjs/loader:1115:19) { code: 'MODULE_NOT_FOUND', requireStack: [ '/app/routes/main.js', '/app/app.js', '/app/bin/www' ] } Node.js v20.6.1 npm WARN config production Use --omit=dev instead. Can you help m
lasse
lasse13mo ago
The program cant seem to find "Error: Cannot find module '../controllers/itemcontroller'"
Want results from more Discord servers?
Add your server