bull-board: Can not use 1.2.0 without bullmq depenedency
My project just uses ‘bull’ not '‘bullmq’. When i try to compile the project with tsc i get the following errors.
node_modules/bull-board/dist/@types/app.d.ts:2:43 - error TS2307: Cannot find module 'bullmq' or its corresponding type declarations.
2 import { Job as JobMq, JobsOptions } from 'bullmq';
~~~~~~~~
node_modules/bull-board/dist/queueAdapters/bullMQ.d.ts:1:28 - error TS2307: Cannot find module 'bullmq' or its corresponding type declarations.
1 import { Job, Queue } from 'bullmq';
~~~~~~~~
Found 3 errors.
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Reactions: 10
- Comments: 24 (12 by maintainers)
Commits related to this issue
- Split bull & bullMq types to be generic, closes #202 — committed to felixmosh/bull-board by felixmosh 3 years ago
- Split bull & bullMq types to be generic, closes #202 — committed to felixmosh/bull-board by felixmosh 3 years ago
@jsbrain thank you 🙏🏼 I will review your approach at the up coming weekend.
@felixmosh yes sure, you’d either have to exclude two sets of types for each library, or better, transform those types to conditional/generic types so the actual final types are defined by one single type param which is either bull or bullmq.
I’m currently super busy at work so idk if I’m able to contribute much but I will try to provide at least an example type soon which could be used as template for the other types 😃
@plakk2020 you can install
bullmq
as your deps, I Still didn’t found any good solution…