Skip to content
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

Warning: Accessing non-existent property 'MongoError' of module exports inside circular dependency #9966

Closed
orassayag opened this issue Feb 24, 2021 · 5 comments
Assignees
Labels
needs repro script Maybe a bug, but no repro script. The issue reporter should create a script that demos the issue

Comments

@orassayag
Copy link

Do you want to request a feature or report a bug?

What is the current behavior?
After upgrade to mongoose 5.11.18 I'm getting a warning:
"(node:16924) Warning: Accessing non-existent property 'MongoError' of module exports inside circular dependency
(Use node --trace-warnings ... to show where the warning was created)"

If the current behavior is a bug, please provide the steps to reproduce.

Upgrade to mongoose 5.11.18 and try to use it.

What is the expected behavior?

What are the versions of Node.js, Mongoose and MongoDB you are using? Note that "latest" is not a version.
Using Node v14.15.5, mongoose 5.11.18

@ghost
Copy link

ghost commented Feb 24, 2021

Hey,

I have the same problem, node version v15.10.0 and mongoose version, 5.11.18. This occurs when I try to search for a database that does not exist.

@sempasha
Copy link

This warning appears for mongoose ^5.11.16, when 5.11.15 installed there is no warning.

@ghost
Copy link

ghost commented Feb 24, 2021

It happens on 5.11.15 also. For me.

EDIT:- I went back to 5.11.18, and the issue occurs randomly. Like, once every 2 or 3 times of usage

EDIT2:- After trying it out like 10-15 times, the error now only occurs at startup and nowhere else

@IslandRhythms IslandRhythms added aware needs repro script Maybe a bug, but no repro script. The issue reporter should create a script that demos the issue labels Feb 24, 2021
@thomasthebro1
Copy link

I am also experiencing this problem with 5.11.18, best bet is probably to revert to 5.11.15 until the problem is fixed as it results in the database not connecting at all.

@vkarpov15
Copy link
Collaborator

This is a duplicate of #9900. The fix has been merged mongodb/node-mongodb-native#2734 but we're still waiting on a new release of the MongoDB driver in order to pull in that fix.

@Automattic Automattic locked and limited conversation to collaborators Mar 1, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
needs repro script Maybe a bug, but no repro script. The issue reporter should create a script that demos the issue
Projects
None yet
Development

No branches or pull requests

5 participants