[email protected]Get Started Nodemon index.js
[nodemon] 2.0.21
[nodemon] Restart at any time, enter rs
[nodemon] Monitoring path: .
[nodemon] View extensions: js,mjs,json
[nodemon] Start node index.js
Server runs successfully on port 8000
D:\ecommerce\server\node_modules\mongoose\lib\model.js:3144
for (let i = 0; i < error.writeErrors.length; i) {
^
TypeError: Cannot read property of undefined (read 'length')
In D:\ecommerce\server\node_modules\mongoose\lib\model.js:3144:47 [nodemon] Application crash - waiting for file changes before starting...
Please help me solve this problem.
Please try one of these in your question it may help you
writeErrors is a property reported by the MongoDB driver
Let i = 0; i
Or update your library