-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Tailwind CSS v3: HookWebpackError: Missed semicolon #6336
Comments
Similar issue, closed without further information: #6323 |
having same issue |
I found the issue and merged a fix for the typography plugin which should go out whenever the next release is tagged. |
I've run into this problem as well, it seems to be triggered by this line here
This error message is what leads me to that specific line:
PostCSS seems to have a lot of trouble with some characters appearing in css files. It has also given me trouble with quotes and apostrophes in my comments, assuming that they are opening a string. Not sure how to remedy either issue. |
@drooJohnson In your case I believe it's sass-related. |
@thecrypticace Ah! Thank you, I probably should've guessed that content strings of |
Indeed that was the issue! Thanks for your investigation. I changed Closing, as it is now resolved, and is more of an issue with |
I had some custom font sizes enabled like this: fontSize: {
xl: ['1.25rem', '1.666'],
'2xl': ['1.5rem', '1.375'],
'3xl': ['1.875rem', '1.375'],
'4xl': ['2.25rem', '1.375'],
} Then in my typography settings I tried to do this: 'h1, h2': {
fontSize: theme('fontSize.2xl'), // OOPS I am taking both font size and line height here, an array
}, Causing the "Missed semicolon error". Because it is trying to get an array instead of a single item. 'h1, h2': {
fontSize: theme('fontSize.2xl')[0], // ONLY take the font size property and not both size and line height
}, |
This fixed my issue as well! Awesome 🤘 |
If a typo occurs, the same error will appear from Users encountering this error are advised to check for typos. My error code theme: {
extend: {
keyframes: {
slideright: {
"0%": { transform: "translateX(0)" },
"100%": { transform: "translateX(15px)" },
},
sliderbottom: {
"0%": {
opacity: 0,
transform: "translateZ(-1400px) translateY(300px)",
},
"100%": {
opacity: 1,
⛔️ typo error => transform : ⛔️
transform: "transform : translateZ(0) translateY(0)",
},
},
},
----- |
Hello! How did you solve your issue? @theoludwig |
What version of Tailwind CSS are you using?
Tailwind CSS v3.0.0
What build tool (or framework if it abstracts the build tool) are you using?
Next.js v12.0.7, autoprefixer v10.4.0, postcss v8.4.4
What version of Node.js are you using?
Node.js v 16.13.1
What browser are you using?
N/A
What operating system are you using?
GNU/Linux Ubuntu 21.10
Describe your issue
When doing
npm run build
to build my Next.js application, I've got a webpack error, saying :It seems like the generated CSS file from Tailwind is broken.
See the CI run (and source code): https://github.com/Divlo/Divlo/runs/4480558963
The text was updated successfully, but these errors were encountered: