Skip to content
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

AdonisJS 6 Support #32

Closed
beletate opened this issue Jan 30, 2024 · 12 comments
Closed

AdonisJS 6 Support #32

beletate opened this issue Jan 30, 2024 · 12 comments
Assignees

Comments

@beletate
Copy link

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
Copy link
Owner

Hey @beletate! 👋🏻

This package is not yet available for AdonisJS 6.

@jigs1996
Copy link

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

@irshadahmad21
Copy link

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

@RomainLanz
Copy link
Owner

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

@RomainLanz RomainLanz self-assigned this Apr 1, 2024
@RomainLanz RomainLanz changed the title Cannot configure module "@rlanz/bull-queue". The module does not export the configure hook AdonisJS 6 Support Apr 2, 2024
@RomainLanz RomainLanz pinned this issue Apr 2, 2024
@irshadahmad21
Copy link

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
Copy link

QU35T-code commented May 3, 2024

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
Copy link
Owner

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
Copy link

QU35T-code commented May 3, 2024

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
Copy link
Owner

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

@QU35T-code
Copy link

QU35T-code commented May 3, 2024

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

image

@RomainLanz
Copy link
Owner

RomainLanz commented May 17, 2024

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
Copy link
Owner

Officially released as 3.0.0!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants