node(10020) 如何删除 'MongoError' 警告?

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

如果我 运行 我的 mocha 测试我收到此警告消息:

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

> mongotube@1.0.0 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)       

如何删除或解决它?

这是 mongoose 源代码中的一个问题,四天前已修复:https://github.com/Automattic/mongoose/issues/9900#issuecomment-802166493

mongoose 更新为 5.12.1