-
Notifications
You must be signed in to change notification settings - Fork 182
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
DeprecationWarning: Listening to events on the Db class has been deprecated and will be removed in the next major version #333
Comments
Prompted to come here for this same issue. |
TEMP Fix. |
This is fixed with mongodb version 3.6.5.
This can also be fixed with Given that this isn't an issue with monk and is resolved downstream, this is probably safe to close? |
I have tried to install [email protected] and 3.6.6 but the deprecation warning still be exist.. And I have found monk library also have own mongodb version. So which mongodb version that we install to our project, monk will use its own mongodb version |
This is not how NPM works. Monk specifies This means that if you explicitly install a version of mongodb in your project, monk will use that version of mongodb, provided that the version you install is after 3.2.3. |
@zkldi
I used to use yarn and found monk still use [email protected]. I think the problem may be caused by yarn. Yarn Version : 1.22.10 |
Strange, this has started breaking for me again. Nothing has changed with the versions installed, either. |
Well, hm. Here's an uninteresting fix. If you:
The errors do not appear. I have absolutely no idea how this fixes the problem, but uh, it does. Maybe NPM is doing some wacky cacheing. |
I solved this problem with silly solution, I had cloned monk library, downgrade mongodb to 3.6.3, and allow lib to be hosted on github. So I use the cloned monk on my project
|
Hi! I tried this but I'm still receiving the warning. I tried all other solutions above as well... Anyone who found a fix yet? |
I have exactly the same problem. Is there already a solution? |
It's a shame that we have not received any reply from the developers of this framework, stating how to resolve this issue or at least letting us know they are working on it. It's a pain in the ass when you're debugging your program and all you see is that you're being spammed by these errors. Someone, please tell me how to disable these errors, I don't care if they're just ignored or if the code is fixed, I JUST DONT WANT TO SEE THEM. Thanks. |
This worked for me. i almost collapsed fixing this bug |
I got some deprecation warning
OS : macOS 11.2 Big Sur
Monk : Latest 7.3.3
Mongodb : Latest 3.6.4
The text was updated successfully, but these errors were encountered: