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
postcss-loader throws error after Nuxt v2.16 update #18867
Comments
i fixed it with:
|
thanks @volk234 I did that and it resolved the postcss error. Next I ran into an "TextEncoder is not defined" error thrown by axios, which seems to have been recently fixed: This got me thinking and I tried running Closing this issue, as it seems related to the specific state of my project's |
Why do we have to install postcss manually in 2.16.0? |
Exactly, the mind boggles 🤯 |
I start to use pnpm,my project throws this error too.(in my PC is totally no error,but generate in server ,so weird) |
Environment
System:
OS: Linux 5.10 Ubuntu 20.04.4 LTS (Focal Fossa)
CPU: (8) x64 Intel(R) Core(TM) i5-8265U CPU @ 1.60GHz
Memory: 8.00 GB / 12.34 GB
Container: Yes
Shell: 5.0.17 - /bin/bash
Binaries:
Node: 16.16.0 - ~/.nvm/versions/node/v16.16.0/bin/node
Yarn: 1.22.19 - ~/.yarn/bin/yarn
npm: 8.19.2 - ~/.nvm/versions/node/v16.16.0/bin/npm
npmPackages:
@nuxt/content: ^1.15.1 => 1.15.1
nuxt: ^2.16.0 => 2.16.0
Reproduction
beeldengeluid/labs.beeldengeluid.nl#459
Describe the bug
After bumping nuxt from 2.15.8 to 2.16.0,
nuxt
andnuxt generate
throw the following error:Additional context
I've tried following this migration guide:
https://github.com/postcss/postcss/wiki/PostCSS-8-for-end-users#nuxtjs
and added @nuxt/postcss8 according to
https://github.com/nuxt/postcss8#usage
but Nuxt v2.16 is clever and ignores explicit @nuxt/postcss8 references, because it knows it is already used as part of nuxt:
Could it be that
postcss-loader
orpostcss-import
are still using an earlier version of postcss?How could I fix that?
Logs
No response
The text was updated successfully, but these errors were encountered: