javascript 如何解决mongoDB库中writeErrors.lenght for(let i=0;i〈error.writeErrors.length;++i)TypeError:Cannot read properties undefined(阅读'length')

ct3nt3jp  于 2023-03-21  发布在  Java
关注(0)|答案(1)|浏览(183)

server@1.0.0 start nodemon index.js
[nodemon] 2.0.21 [nodemon]要随时重新启动,请输入rs [nodemon] watching path(s):. [nodemon] watching extensions:日本、马来西亚、日本
[nodemon]启动node index.js服务器在PORT 8000 D:\ecommerce\server\node_modules\mongoose\lib\model.js:3144 for(let i = 0;i〈error.writeErrors.length;++i){ ^
TypeError:无法读取未定义的属性(阅读“length”)
at D:\ecommerce\server\node_modules\mongoose\lib\model.js:3144:47 [nodemon] app crashed - waiting for file changes before starting...
请帮我解决这个问题。

相关问题