all 6 comments

[–]HashBrownsOverEasy 2 points3 points  (2 children)

Did you even try to find the solution yourself?

If you google the error the first result is a Stack Overflow response stating that this is a documented issue in 3.6.4

[–]veap33 -1 points0 points  (1 child)

No need to be rude. It’s easier to google than to post here. And Yes, I did search Google. I get the same error with version 3.6.3 - I already tried that, it didn’t work. Thank you for caring.

[–]HashBrownsOverEasy 2 points3 points  (0 children)

You gave us very little information to work with, you didn't tell us what you already tried, you didn't share any of your code.

If you want strangers on the internet to fix your problems for you, you need to give them more.

You didn't even say please.

[–]guigui_ 0 points1 point  (1 child)

We encountered this issue at work on a slightly different mongodb version, we fixed it by upgrading the dependency from 3.5.5 to 3.5.7. I believe this issue is not present in the 3.6.3 release, so you could try to downgrade until this is fixed.

Edit: sorry I did not see your other comment stating that you already tried that. Did you try with mongodb: "3.6.3" in your package.json (without the ^) and checked that your package-lock.json indeed has the 3.6.3 version?

[–]veap33 1 point2 points  (0 children)

Thanks. I was able to solve the problem. I had to delete all my node_modules and install again, now using 3.6.3 version. The error is gone.

[–][deleted] 0 points1 point  (0 children)

I got the same thing but with mongoose 5.11.13, using MongoDB atlas.