Comments (14)
Well, hm. Here's an uninteresting fix. If you:
- install monk
npm install monk
- install [email protected], @3.6.5, or later deliberately
npm install mongodb
- uninstall monk
npm uninstall monk
- install monk
npm install monk
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.
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?
from monk.
Prompted to come here for this same issue.
from monk.
TEMP Fix.
you must remove current mongoose version (I was on 5.11.13), and downgrade to [email protected], to resolve it.
from monk.
This is fixed with mongodb version 3.6.5.
npm i [email protected]
This can also be fixed with npm i [email protected]
, as that version is before the bug occured.
Given that this isn't an issue with monk and is resolved downstream, this is probably safe to close?
from monk.
I have tried to install [email protected] and 3.6.6 but the deprecation warning still be exist..
And originally why I open the issue, I think this deprecation may cause problem in the next release if monk library is not patched / fixed
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
from monk.
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 "mongodb": "^3.2.3",
, which means any version of mongodb greater than or equal to 3.2.3, but NOT 4.x.x.
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.
from monk.
@zkldi
Please check it out this simple repo https://github.com/fortezhuo/monk_dummy
The repo only contains mongodb 3.6.3 and monk 7.3.3
{
"name": "monk_dummy",
"version": "1.0.0",
"main": "index.js",
"license": "MIT",
"dependencies": {
"mongodb": "3.6.3",
"monk": "^7.3.3"
}
}
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
from monk.
Strange, this has started breaking for me again. Nothing has changed with the versions installed, either.
from monk.
Well, hm. Here's an uninteresting fix. If you:
- install monk
npm install monk
- install [email protected], @3.6.5, or later deliberately
npm install mongodb
- uninstall monk
npm uninstall monk
- install monk
npm install monk
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.
from monk.
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
"monk": "fortezhuo/monk",
from monk.
I have exactly the same problem. Is there already a solution?
from monk.
Why isn't Monk just using the new paradigm?
https://www.mongodb.com/community/forums/t/node-44612-deprecationwarning-listening-to-events-on-the-db-class-has-been-deprecated-and-will-be-removed-in-the-next-major-version/15849/4
from monk.
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.
from monk.
- npm install monk
This worked for me. i almost collapsed fixing this bug
from monk.
Related Issues (20)
- .update() not updating correctly. How can I overwrite but keep same ID? HOT 1
- New mongodb driver will connected failed
- count deprecated HOT 1
- Incomplete/broken Types regarding 'CollectionOptions'
- Can we update MongoDb version? HOT 1
- [help] how get the array a array with users.find HOT 1
- MongoDB 4.4 support
- Return type of update() is incorrect HOT 3
- Can't get req.query.name to collection.find HOT 2
- MongoDB v4 support HOT 1
- bulkWrite return types are completely wrong
- DeprecationWarning: collection.findOneAndUpdate option [returnOriginal] is deprecated and will be removed in a later version.
- MongoDB 5.0 support HOT 1
- monk.findOneAndUpdate never resolves HOT 1
- collection.find() exits without throwing any error when user not found
- wrong/deprecated code on Docs
- There's nobody maintain this project? how to apply for maintainer?
- Cannot $set `length` field HOT 1
- monk not working with node v18.8 on windows 11 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from monk.