Next.js Build failed because of webpack errors: CssSyntaxError #7395
Unanswered
AlexMarcoDAngelo
asked this question in
Help
Replies: 1 comment
-
It looks like this is happening locally too, so not entirely a Vercel issue. However, I recommend reviewing your CSS/SCSS files for syntax errors or invalid properties. Common mistakes include missing semicolons, misplaced braces, or incorrect property names. When I hit issues like this, I also like commenting out bits of code and re-building until I identify the piece that is causing issues. Let us know how you get on! Good luck! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Summary
I've been stuck and going all over internet trying to figure something that prevents my app to be build on Vercell (well locally as well).
The error comes from css-minimizer-plugin and is CssSyntaxError: Unknown word.
My question is - since it only shows location of the error inside static\css\363329e5478d19a3.css which gets immediately deleted when build fails - how on earth i can figure out what is the issue (what line of code in which file?)
Example
No response
Steps to Reproduce
Beta Was this translation helpful? Give feedback.
All reactions