Mavrickj9
Mavrickj9

Reputation: 25

node(10020) How do i remove 'MongoError' warning?

If i run my mocha test i'm getting this warning message:

C:\Users\user\Desktop\mongoTube>npm run test

> [email protected] test C:\Users\user\Desktop\mongoTube
> mocha

(node:10020) Warning: Accessing non-existent property 'MongoError' of module exports inside circular dependency
(Use `node --trace-warnings ...` to show where the warning was created)


  Create records
    √ Create a user in DB


  1 passing (68ms)       

How can i remove it or solve it?

Upvotes: 0

Views: 67

Answers (1)

lifeisfoo
lifeisfoo

Reputation: 16294

It's an issue in mongoose source code that was fixed four days ago: https://github.com/Automattic/mongoose/issues/9900#issuecomment-802166493

Update mongoose to 5.12.1.

Upvotes: 1

Related Questions