RomainLanz / adonis-bull-queue

Queue system based on BullMQ for AdonisJS
MIT License
143 stars 26 forks source link

AdonisJS 6 Support #32

Closed beletate closed 5 months ago

beletate commented 9 months ago

We trying to use bull-queue after init adonis with "API Starter Kit", but there is an error when we try to run node ace configure @rlanz/bull-queue.

node -v
# v21.6.1

How to reproduce: npm init adonisjs@latest hello-world

Select "API Starter Kit".

Run:

npm install @rlanz/bull-queue
# and
node ace configure @rlanz/bull-queue

Get this following error: [ error ] Cannot configure module "@rlanz/bull-queue". The module does not export the configure hook

RomainLanz commented 9 months ago

Hey @beletate! 👋🏻

This package is not yet available for AdonisJS 6.

jigs1996 commented 9 months ago

@RomainLanz Could you please, let us know if we will get an update to support AdonisJS v6?

irshadahmad21 commented 8 months ago

@RomainLanz When can we expect an update for this package for Adonis V6?

RomainLanz commented 7 months ago

You can try the release 2.0.0-6 and let me know what you think!

irshadahmad21 commented 7 months ago

You can try the release 2.0.0-6 and let me know what you think!

Thank you. I will give it a try.

QU35T-code commented 6 months ago

2.0.0-6

It seems to work fine with this version

> node ace configure @rlanz/bull-queue

DONE:    create config/queue.ts
DONE:    update .env file
DONE:    update start/env.ts file
DONE:    update adonisrc.ts file
RomainLanz commented 6 months ago

Cool, I will move the beta release to 3.0.0-1 later today because I plan to release another version for AdonisJS 5 that has some breaking changes.

Keep testing and let me know if you find anything!

QU35T-code commented 6 months ago

Cool, I will move the beta release to 3.0.0-1 later today because I plan to release another version for AdonisJS 5 that has some breaking changes.

Keep testing and let me know if you find anything!

I've just realized that I can't access to the Queue module and call the dispatch method ? Am I doing something wrong ?

image

SyntaxError: The requested module '@rlanz/bull-queue' does not provide an export named 'Queue'

RomainLanz commented 6 months ago

It has to be import queue from '@rlanz/bull-queue/services/main';

QU35T-code commented 6 months ago

Thanks !! I didn't look at the documentation for the right branch :/

image

RomainLanz commented 5 months ago

On a side note, you must install the version 3.0.0-1 for AdonisJS 6 now. I pushed a breaking update for the AdonisJS 5 releases that took the 2.0.0 version. 👍🏻

RomainLanz commented 5 months ago

Officially released as 3.0.0!