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
Project ID:
afef7d38-e9a0-4513-a27f-e25fb5916551
afef7d38-e9a0-4513-a27f-e25fb5916551
What is your error?
Deploymant failed duting build process
project-inventory@0.0.0 start node ./bin/wwwnode: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.
project-inventory@0.0.0 start node ./bin/wwwnode: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 mThe program cant seem to find "Error: Cannot find module '../controllers/itemcontroller'"
please send your logs: https://bookmarklets.up.railway.app/log-downloader/