'Why my Mongoose not working in my every project [closed]
If I use mongoose then mongoose give me this error
QueryCursor.prototype.map = function(fn) { ^
TypeError: Cannot assign to read only property 'map' of object '#'
Solution 1:[1]
Check if you have node version 17.5.0 installed. If so, change it to the last LTS version 16.14.0. I had the same issue, and I resolved it like that.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | bja34 |
