-
-
Notifications
You must be signed in to change notification settings - Fork 377
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fails to build #546
Comments
Hi @japrescott thank you for reporting this issue. Can you try to change the import to work with import {ExpressAdapter} from '@bull-board/express';
import {createBullBoard} from '@bull-board/api';
import {BullMQAdapter} from '@bull-board/api/bullMQAdapter'; It is related to #500, maybe, @mmachatschek can help with this.... |
@japrescott I'm not sure why exactly you are seeing this issue, we are using this feature in production since the release of the feature 🤔 our dependencies are import { ExpressAdapter, createBullBoard, BullMQAdapter } from '@bull-board/express';
const queues = pseudoCodeReturnSomeQueues();
const serverAdapter = new ExpressAdapter();
createBullBoard({
queues: Object.values(queues).map(queue => new BullMQAdapter(queue())),
serverAdapter: serverAdapter,
}); Are you 100% sure you are not importing Would be great to have a repo with reproduction steps. I'll happily fix an issue (if one persists). |
It is a typescript issue, that I'm able to reproduce. |
@felixmosh I'm able to reproduce this too after setting the |
This is the reason I've separated queueAdapters into separate files. |
I've experimented around a little bit and I see these two options to still support this feature:
import { ExpressAdapter, createBullBoard, BullAdapter } from '@bull-board/express/bull';
import { ExpressAdapter, createBullBoard, BullMQAdapter } from '@bull-board/express/bullMQ'; This would be a similar export like it's already done in I'm sending in a PR tomorrow, to see all the implications |
I think that we will go with option 2, without re-exporting the adapters (rollback). |
Released in |
Thank you for a fast resolution and sorry for my radio silence. I should have mentioned I'm on typescript. |
might be a good idea to mention the breaking change in the github release description for |
Hey @felixmosh
Currently 4.12.2 is failing to build with
bull-board
with only"@bull-board/express": "~4.12.2"
and"bullmq": "~3.10.1"
as dependenciesWe only import
import { BullMQAdapter, ExpressAdapter, createBullBoard } from '@bull-board/express';
sobull
should not be needed.However, adding
"bull": "~4.10.4"
to the dependencies resolves this issue.The text was updated successfully, but these errors were encountered: