我只是想创建一个API,并在我的应用程序中连接到它.js文件,但每次我运行应用程序.js我收到了这个弃用警告.我已经判断了mongoose和MongoDB中的所有弃用警告,但我找不到任何与我的相匹配的警告.我得到的警告是,
(node:16864) Warning: Accessing non-existent property 'MongoError' of module exports inside circular dependency
(Use node --trace-warnings ... to show where the warning was created)
(node:16864) DeprecationWarning: Listening to events on the Db class has been deprecated and will be removed in the next major version.
为什么我会收到这个弃用警告?我如何才能删除它?