-
Notifications
You must be signed in to change notification settings - Fork 73
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
TypeError: User.$useHandler is not a function #43
Comments
It looks like these functions are not be exposed properly on the Model prototype as we'd expect. As a work around you can use |
oh.. spent almost 4 hours till I found that issue. maybe you should update docs for now :) |
The same here. +1 for updating. |
@PaulRBerg You better use https://www.npmjs.com/package/sequelize-redis |
Does the solution from @ktsashes work for you? I have : |
anyone still having this issue recently? Have a mock similar to OP and both $useHandler and $queryInterface are undefined on the User. |
Got the same issue here both $useHandler and $queryInterface are undefined. |
i am also facing the same undefined issue. any update on this? |
static formatDuration(durationObj) { static newMethod(hours) { Please how can I fix this? TypeError: hours is not a function |
This is still a problem by the way. This work around worked for me #43 (comment), but I only found it after a few hours of scrolling through the docs and my code, wondering what was wrong. If there isn't going to be a fix soon, someone should at least update the docs temporarily. I also had to use this workaround for |
6 years... Is there any update? Why this bug still be there? |
Are you going to fix this problem? |
I have made an update on the documentation checkout my pull requests #101 |
I updated the documentation |
I feel like I'm being an idiot :), but I've setup my test as close to the docs as possible, yet I'm getting an
TypeError: User.$useHandler is not a function
error any time I try to run tests. I've dug through the code trying see if I'm using it at the right place and I'm stuck. Any help is appreciated, the library looks super useful!The text was updated successfully, but these errors were encountered: