[英](node:12308) Warning: Accessing non-existent property 'MongoError' of module exports inside circular dependency
my package.json
file:-我的package.json
文件:-
{
"name": "Project",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"start": "node server",
"server": "nodemon server"
},
"keywords": [],
"author": "",
"license": "ISC",
"dependencies": {
"bcryptjs": "^2.4.3",
"config": "^3.3.6",
"express": "^4.17.1",
"express-validator": "^6.10.0",
"gravatar": "^1.8.1",
"jsonwebtoken": "^8.5.1",
"mongoose": "^5.11.19",
"request": "^2.88.2"
},
"devDependencies": {
"concurrently": "^6.0.0",
"nodemon": "^2.0.7"
}
}
This is a known issue on the new version on mongoose packages, as you can take a look here, I posted issue about it: https://github.com/Automattic/mongoose/issues/9966这是 mongoose 包的新版本上的一个已知问题,您可以在这里查看,我发布了关于它的问题: https://github.com/Automattic/mongoose/issues/9966
I suggest downgrade to version 5.11.15.我建议降级到版本 5.11.15。 When this version is installed there is no warning.安装此版本时没有警告。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.