-
Notifications
You must be signed in to change notification settings - Fork 26.5k
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 for new project - Cannot read properties of undefined (reading 'pop') #57005
Comments
I got a similar error. Downgraded the Node JS version - the current solution for me. |
Yep, using the current 18.18.2 LTS worked a treat 👍 thank you! The LTS page wasn't loading for me when I was updating Node, but for some reason the current/latest-features page was, so I got stuck with that. I'll let an admin decide if they want to close this -- might be worth keeping open if upcoming Node versions are going to be a problem. |
I encountered this error in my project, after upgrading from Node.js v20 to v21.0.0. With Node.js v20.8.1, the same project is built successfully. I use Next.js 13.5.6. |
Getting this too in Node.js 21. Seems related to this: sass/dart-sass#2127 |
Same issue here, glad I didn't have to downgrade any packages after running |
Fixed in nodejs 21.1.0. |
Same problem here, my Node version was 21.0.0, I upgraded Node by CLI following the @kaechele suggestion (the CLI automatically installed the 21.4.0 version) so it works fine now. |
) |
Link to the code that reproduces this issue
https://github.com/FreedCapybara/nextjs-sass-error
To Reproduce
src/app/page.module.css
tosrc/app/page.module.scss
and update the import insrc/app/page.tsx
Current vs. Expected behavior
I expect the app to build and render the page, but the app crashes with
Cannot read properties of undefined (reading 'pop')
.Verify canary release
Provide environment information
Which area(s) are affected? (Select all that apply)
Not sure, CLI (create-next-app)
Additional context
Occurs as far back as 12.3.2-canary.43, had trouble installing older versions.
The text was updated successfully, but these errors were encountered: