-
Notifications
You must be signed in to change notification settings - Fork 350
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
Node 21 error: Cannot read properties of undefined (reading 'pop')
#2127
Comments
Seems to be related to dart-lang/sdk#53784 |
I was thinking about that, but all occurrences of that other error mention |
Yeah. That's why I mentioned them here. |
Same here. Vite fails with:
Pasting in the error so Vite folks discover the thread when Google-ing it. |
Can someone provide a minimal reproduction for this? I've tried manually editing |
Getting this as well in the latest Next.js 13.5.6 pages directory. stack: ../../node_modules/.pnpm/[email protected][email protected][email protected][email protected]/node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[7].oneOf[9].use[1]!../../node_modules/.pnpm/[email protected][email protected][email protected][email protected]/node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[7].oneOf[9].use[2]!../../node_modules/.pnpm/[email protected][email protected][email protected][email protected]/node_modules/next/dist/build/webpack/loaders/resolve-url-loader/index.js??ruleSet[1].rules[7].oneOf[9].use[3]!../../node_modules/.pnpm/[email protected][email protected][email protected][email protected]/node_modules/next/dist/compiled/sass-loader/cjs.js??ruleSet[1].rules[7].oneOf[9].use[4]!./components/ui/ScrollArea.module.scss
./components/ui/ScrollArea.module.scss
./components/ui/ScrollArea.tsx Appears its already fixed on dart-sass end |
facing the same with Vite, any workarounds other than downgrade of nodejs? |
Unfortunately its the only work around |
@VishnuJin upgrading to node v21.1.0 fixed the issue for me |
Since this seems to be fixed in Node 21.1, I'm closing it out. |
…css issue - the store is initialized in plugins/init.js like it was before, using the env object - this env is set to empty if not retrieved - import '../styles/settings.scss' is now valid, node 20 bug apparently, more info here : * vuejs/vitepress#3102 * sass/dart-sass#2127 * dart-lang/sdk#53784 - the data is set to data.data as soon as we get it from axios, removing further problems
Hello,
We're getting the above mentioned error after upgrading Node to 21. We're using webpack and
sass-loader
if this changes anything. Here's the stacktrace:Reported line looks like this
const library = globalThis._cliPkgExports.pop();
so it looks likeglobalThis._cliPkgExports
is undefined.The text was updated successfully, but these errors were encountered: