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

[BUG] Using plugin does not work in latest version of Elysia #1

Open
itsyoboieltr opened this issue Sep 6, 2023 · 4 comments
Open

Comments

@itsyoboieltr
Copy link

Reproduction:

export const app = new Elysia().use(lambda())
No overload matches this call.
  The last overload gave the following error.
    Argument of type '(app: Elysia) => Elysia<ElysiaInstance>' is not assignable to parameter of type 'Promise<{ default: (elysia: Elysia<any, any>) => Elysia<any, ElysiaInstance>; }>'.ts(2769)

I would assume this is because the type system was largely reworked, and this project is using an older version of Elysia. Updating it should fix this issue.

@TotalTechGeek
Copy link
Owner

Thanks for the bug report, and good catch!

I think I'll need to rework the library a little bit given recent changes to both Bun & Elysia.

I may not be able to get around to it until this weekend though.

@itsyoboieltr
Copy link
Author

@TotalTechGeek Hey again! I do not know if you had any time to look at the issue, but now with a stable bun 1.0 and the new rewrite of Elysia types in 0.7, it would probably be a good time now for the rework, as things are getting a bit more stable.

@jondavidpass
Copy link

Would also love to see this updated. Just started a new project so hoping not to roll back Bun and Elysia versions.

@TotalTechGeek
Copy link
Owner

TotalTechGeek commented Sep 22, 2024

Apologies for not keeping up with (practically abandoning 😭) this project; I think I have some free time over the next few days to pick it back up again, especially given that everything in the ecosystem seems to be a lot more stable.

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

No branches or pull requests

3 participants