Deploy Crashed
yakuo
PROOP

19 days ago

There were no issues during the day, and we didn’t make any changes. However, the deployment suddenly started failing. Could you please check? Additionally, it is running without any issues on our other server.

Error: Cannot find module 'bullmq'

Require stack:

- /app/node_modules/@bull-board/api/dist/providers/flow.js

- /app/node_modules/@bull-board/api/dist/handlers/jobFlow.js

at Module.load (node:internal/modules/cjs/loader:1266:32)

at Module._load (node:internal/modules/cjs/loader:1091:12)

at Module.require (node:internal/modules/cjs/loader:1289:19) {

code: 'MODULE_NOT_FOUND',

requireStack: [

'/app/node_modules/@bull-board/api/dist/providers/flow.js',

'/app/node_modules/@bull-board/api/dist/handlers/jobFlow.js',

'/app/node_modules/@bull-board/api/dist/routes.js',

'/app/node_modules/@bull-board/api/dist/index.js',

'/app/node_modules/@bull-board/nestjs/dist/bull-board.root-module.js',

'/app/node_modules/@bull-board/nestjs/dist/bull-board.module.js',

'/app/node_modules/@bull-board/nestjs/dist/index.js',

'/app/dist/src/module/catalog/catalog.module.js',

'/app/dist/src/app.module.js',

'/app/dist/src/main.js'

]

}

Node.js v20.20.0

Solved$10 Bounty

Pinned Solution

diogoribeirodev
FREETop 5% Contributor

19 days ago

bullmq is missing from dependencies.

Make sure it's in your dependencies:
"dependencies": {

"bullmq": "^x.x.x"

}
If it is, make sure it's no in the devDependencies.

Then, You need to make a clean install:
rm -rf node_modules package-lock.json

npm install

then redeploy the service.

2 Replies

Railway
BOT

19 days ago

This thread has been marked as public for community involvement, as it does not contain any sensitive or personal information. Any further activity in this thread will be visible to everyone.

Status changed to Open Railway 19 days ago


yakuo
PROOP

19 days ago

The problem was sudden. We suspect Railway.


diogoribeirodev
FREETop 5% Contributor

19 days ago

bullmq is missing from dependencies.

Make sure it's in your dependencies:
"dependencies": {

"bullmq": "^x.x.x"

}
If it is, make sure it's no in the devDependencies.

Then, You need to make a clean install:
rm -rf node_modules package-lock.json

npm install

then redeploy the service.


Status changed to Solved ray-chen 19 days ago


Status changed to Open ray-chen 19 days ago


Status changed to Solved ray-chen 19 days ago


Loading...