bull-board: uncaughtException: Cannot find module '@bull-board/ui/package.json'
Hello,
Firstly, thanks for your work, this package is exactly what I was looking for.
I tried to setup the board on my express server but couldn’t make it work. I tried with several versions: 4.11.0, 4.10.0, 4.9.0 and 4.8.0 but ended up with the error uncaughtException: Cannot find module '@bull-board/ui/package.json'
every time. I tried to uninstall and reinstall all my packages but got the same error. My configuration is the following: I am working with yarn 3, express, typescript and bullMq. Here is the import and the code I used to setup bull-board:
import {
ExpressAdapter,
} from '@bull-board/express';
import { BullMQAdapter } from '@bull-board/api/bullMQAdapter'
import { createBullBoard } from '@bull-board/api'
import { emailQueue, importQueue, slackQueue } from "../state/queues";
const serverAdapter: any = new ExpressAdapter();
serverAdapter.setBasePath('/ui');
createBullBoard({
queues: [new BullMQAdapter(importQueue), new BullMQAdapter(slackQueue), new BullMQAdapter(emailQueue)],
serverAdapter,
});
export const queueRouter = serverAdapter.getRouter();
Do you have any idea where the error could come from ? I feel like it is a simple installation problem but cannot find how to solve it. Thanks a lot for your time!
About this issue
- Original URL
- State: closed
- Created a year ago
- Comments: 16 (8 by maintainers)
@sibelius if you want to manipulate and change the usage of the lib, you can’t complain that the lib is not doing what you are expecting 😅
I managed to view it, this was just due to some proxy configuration. Thanks again for your time 🙏🏽 💪🏽