-
-
Notifications
You must be signed in to change notification settings - Fork 371
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
@bull-board/[email protected] typings error #289
Comments
What is the code you are trying to compile / run? |
I've just updated the title with the version, if this is what you're asking about, it is Update note: I also reproduce locally when building my code using the package |
Can you share the code that uses |
I'm using import { MiddlewareConsumer, Module } from '@nestjs/common';
import { Queue } from 'bull';
import { BullModule, InjectQueue } from '@nestjs/bull';
import { createBullBoard } from '@bull-board/api';
import { BullAdapter } from '@bull-board/api/bullAdapter';
import { ExpressAdapter as BullBoardExpressAdapter } from '@bull-board/express';
import { QueueService } from './queue.service';
@Module({
imports: [
BullModule.registerQueue(
{
name: 'queue1'
},
{
name: 'queue2'
}
)
],
providers: [QueueService],
exports: [QueueService]
})
export class QueueModule {
private bullBoardExpressAdapter: BullBoardExpressAdapter;
constructor(
@InjectQueue('queue1')
private readonly queueOne: Queue,
@InjectQueue('queue2')
private readonly queueTwo: Queue
) {
/* relevant code related to bull-board below*/
this.bullBoardExpressAdapter = new BullBoardExpressAdapter();
createBullBoard({
queues: [
new BullAdapter(this.queueOne, { readOnlyMode: false }),
new BullAdapter(this.queueTwo, { readOnlyMode: false })
],
serverAdapter: this.bullBoardExpressAdapter
});
}
configure(consumer: MiddlewareConsumer): void {
this.bullBoardExpressAdapter.setBasePath('/status/queues');
const router = this.bullBoardExpressAdapter.getRouter();
consumer.apply(router).forRoutes('/status/queues');
}
} Let me know if it helps, |
Thanx for pointing out this issue, looks like it will be solved in the next release ( |
@AntoineMaitre can you confirm that |
Thanks for your quick reply and release 🚀
node_modules/@bull-board/express/dist/ExpressAdapter.d.ts:1:112 - error TS2307: Cannot find module '@bull-board/api/typings/app' or its corresponding type declarations.
1 import { AppControllerRoute, AppViewRoute, BullBoardQueues, ControllerHandlerReturnType, IServerAdapter } from '@bull-board/api/typings/app'; |
Checking.... |
Can you test |
Thank you very much for your reactivity, and nice job ! |
Hello,
First of all thank you for what you have implemented so far on this project 👍
I encountered the following errors in CI environment:
It looks like the imports of the typings are referencing the source code instead of the built one, or am I missing something ? 🤔
Thanks in advance for your insights !
The text was updated successfully, but these errors were encountered: