-
-
Notifications
You must be signed in to change notification settings - Fork 212
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
Type error in group decorator #130
Comments
This is the same issue as #143 |
Should be fixed in #103. Let me know if the problem stills persists |
Tested with example above on |
Can't replicate with above code on my end, maybe Bun doesn't update the cache? This is specifically resolved in rm -rf node_modules && rm bun.lockb && bun i And see if the problem still persists. If so, can you go into the |
@SaltyAom my bad works now! |
@SaltyAom it works now, thank you! |
Whenever I try to create a group which uses decorator for database access the following problem happens:
The group is working as intended as long as I don't need to access the database.
When it comes to the database access, the instance (in this example the BooksDatabase instance) produces the following error:
TypeError: db.getBooks is not a function. (In 'db.getBooks()', 'db.getBooks' is undefined)
The error only happens in groups, when I try the same with a db decorator on the main Elysia instance it works without any issues.
Is there any workaround for this, or any step I missed?
Thanks for the help! :)
Demo code for the issue:
package.json:
The text was updated successfully, but these errors were encountered: