-
-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
Property 'Buffer' does not exist on type 'typeof globalThis'. #10415
Comments
I just send pull request #10417 i think that will fix your problem |
For the moment try to use this npm install --save sfvii/mongoose |
I tried using this i.e. "npm install --save sfvii/mongoose " and still ran into the same issue |
@SFVII thank you for this! It didn't work for me either. Any updates regarding this issue? |
|
Tried downgrading to previous versions. Still doesn't help. |
Think explicitly adding |
yes this works! thanks @geordle |
Fix is in 726ce8b. As a workaround, add |
Just put @types/node: "15.x" on last line of depencies of your package.json that will override the other. But be sure that is placed on the last line. If you want to use npm install --save sfvii/mongoose samethink on last line |
thanks, it works |
Can someone please clarify whether this is a problem with just that types project, or is mongoose incompatible with Node 16? |
@SubJunk the issue is with the types project, they introduced a sizable breaking change that has nothing to do with the Node.js runtime. Mongoose supports Node v16. |
@vkarpov15 thanks for clarifying |
Still the same problem with node: "16.x" versions |
Do you want to request a feature or report a bug?
Bug
What is the current behavior?
If the current behavior is a bug, please provide the steps to reproduce.
steps to reproduce issue
What is the expected behavior?
Compile without any errors
What are the versions of Node.js, Mongoose and MongoDB you are using? Note that "latest" is not a version.
Node.js version - v16.4.1
Mongoose version - v5.13.1
MongoDb version - v4.4.6
The text was updated successfully, but these errors were encountered: