Pretty please fix Accessing non-existent property 'MongoError' of module exports inside circular dependency

With the Node driver almost anything you do will result in a boatload of warnings similar to this:
Warning: Accessing non-existent property 'count' of module exports inside circular dependency.
I tried installing mongodb@3.6.5 and that did not seem to fix it.
I know it has already been reported, but it is driving me insane. I see this every time I run unit tests OVER AND OVER AND OVER AND …
HOLY CRAP.
It’s been over a month since it’s been reported. PLEASE MAKE THE PAIN STOP. PLEASE.

This was fixed in v3.6.5 and I was confused because I had a dependency that was not updated to the latest driver. My apologies to the driver team.
If anybody else gets here, try this to see if you have some hidden older version that is causing the problem:
npm ls mongodb

2 Likes

Hi @David_Welling!

Welcome to the MongoDB Community Forums :wave:

Thanks for coming back and posting the clarification and potential solution for others!

3 Likes

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.