-
-
Notifications
You must be signed in to change notification settings - Fork 6.2k
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
sass not working with node 21 #14691
Comments
Duplicate of dart-lang/sdk#53784 |
Here is my temporary solution In the vite.config.ts file, first write
Can alleviate errors |
I don't think that error would occur on node 16. navigator global was only added in node 21, and most likely not backported. |
Yes, I confused the currently running node version. Nodejs version 21 will cause errors. |
Describe the bug
Using sass on node 21 is throwing errors.
Reproduction
https://github.com/brc-dd/vite-sass-bug
Steps to reproduce
Run
pnpm install
followed bypnpm dev
. Issue seems to arise from the fact thattypeof navigator
isobject
on node 21. So probably a sass bug instead? 👀System Info
Used Package Manager
pnpm
Logs
Click to expand!
Validations
The text was updated successfully, but these errors were encountered: