Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: Cannot assign to read only property 'map' of object '#<QueryCursor>' #11384

Closed
T6X01 opened this issue Feb 12, 2022 · 5 comments
Closed

Comments

@T6X01
Copy link

T6X01 commented Feb 12, 2022

when i run the script it's come this error

QueryCursor.prototype.map = function(fn) {
                          ^

TypeError: Cannot assign to read only property 'map' of object '#<QueryCursor>'
    at Object.<anonymous> (C:\Users\MRX\Downloads\Groove-main\Groove-main\node_modules\mongoose\lib\cursor\QueryCursor.js:144:27)
    at Module._compile (node:internal/modules/cjs/loader:1097:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1151:10)
    at Module.load (node:internal/modules/cjs/loader:975:32)
    at Function.Module._load (node:internal/modules/cjs/loader:822:12)
    at Module.require (node:internal/modules/cjs/loader:999:19)
    at require (node:internal/modules/cjs/helpers:102:18)
    at Object.<anonymous> (C:\Users\MRX\Downloads\Groove-main\Groove-main\node_modules\mongoose\lib\query.js:12:21)
    at Module._compile (node:internal/modules/cjs/loader:1097:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1151:10)```
@Grayson-code
Copy link

Same Error Has been happening to me its particularly coming from the core files ig,

Average day of a backend dev :/

@Grayson-code
Copy link

Grayson-code commented Feb 12, 2022

Well you can fix the error by downgrading your node.js version to 17.4.x

and wait till #11381 gets implemented

@Uzlopak
Copy link
Collaborator

Uzlopak commented Feb 12, 2022

Duplicate of #11377

@Uzlopak
Copy link
Collaborator

Uzlopak commented Feb 13, 2022

@vkarpov15

This can be closed.

@Uzlopak
Copy link
Collaborator

Uzlopak commented Feb 17, 2022

This is resolved with 6.2.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants