-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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-custom-properties: <css input> Unknown word #5310
Comments
Hey @abhisheksoni27. This is not an issue with
And here is my pull request that should fix the issue with A workaround that you could use for now would be to force export default {
/* ... */
build: {
postcss: {
order: 'cssnanoLast'
}
}
} Hope that helps! |
@bradlc Thanks a lot for the information, and for providing that PR. Adding the clause in nuxt.config.js fixed the issue for now 👍🏻 |
If someone using nuxt 2 still seeing this error, the root cause is A workaround is using {
"overrides": {
"postcss-custom-properties": {
"postcss-values-parser": "^6.0.2"
}
}
} |
What version of Tailwind CSS are you using?
2.2.7
What build tool (or framework if it abstracts the build tool) are you using?
nuxt ^2.15.7
What version of Node.js are you using?
v14.17.0
What browser are you using?
Chrome
What operating system are you using?
macOS
Reproduction repository
https://github.com/abhisheksoni27/tailwindcss-custom-properties-bug
Describe your issue
Simple CSS variables are not working. postcss-custom-properties complains about an unknown word. Check https://github.com/abhisheksoni27/tailwindcss-custom-properties-bug/blob/main/assets/css/root.css
Here's the error:
The text was updated successfully, but these errors were encountered: