简体   繁体   English

(节点:12308)警告:在循环依赖中访问模块导出的不存在属性“MongoError”

[英](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.

相关问题 错误:警告:在循环依赖中访问模块导出的不存在属性“findOne” - Error: Warning: Accessing non-existent property 'findOne' of module exports inside circular dependency 警告:在循环依赖中访问模块导出的不存在的属性“sequelize” - Warning: Accessing non-existent property 'sequelize' of module exports inside circular dependency Yeoman - 访问循环依赖中模块导出的不存在的属性 ____ - Yeoman - Accessing non-existent property ____ of module exports inside circular dependency 在循环依赖NodeJS中访问module.exports不存在的属性 - Accessing non-existent property of module.exports inside circular dependency NodeJS 在 angular 的循环依赖中访问模块导出的不存在的属性“lineno” - Accessing non-existent property 'lineno' of module exports inside circular dependency in angular 将不存在的属性的引用分配给变量 - Assign reference of a non-existent property into a variable 如果分配给不存在的 vue 数据属性,如何显示某种错误或警告? - how to display some sort of error or warning if assigning to a non-existent vue data property? Firebase:访问空/不存在的密钥及其子级 - Firebase: accessing empty / non-existent keys and their children 静默访问Vue实例上的不存在属性失败 - Accessing a non-existent attribute on a Vue instance silently fails 检查代码中是否存在不存在的属性的请求 - Check if anywhere in the code a non-existent property is requested
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM