DEV Community

Discussion on: How to Solve QueryCursor.js Mongoose error with NVM

Collapse
 
uzlopak profile image
Info Comment hidden by post author - thread only visible in this permalink
Uzlopak

Your tutorial is missing the point. Downgrading to node 12 is like saying: Hey your Tesla needs Electricity, but to still use gasoline use a Ford Model-T. Despite the fact you could use a modern car, which uses gasoline.

Also our CI/CD Pipelines is testing for node18, which actually would fail if that issue was still existing. But the patch by @benjamingr is solving that issue also for node18.

So to solve that issue, you would need to upgrade mongoose to latest version OR use any version of node 17 except 17.5.0 and node 18 and above. A downgrade to node 12 is not necessary.

And mongoose 6.3.2 does not has that issue, which you describe.

Some comments have been hidden by the post's author - find out more