@tailwind base; ^ syntax error: invalid or unexpected token. #13975
-
I am getting this error when I am trying to run build for my NextJs and Tailwind CSS application. |
Beta Was this translation helpful? Give feedback.
Answered by
Icegreeen
Jul 12, 2024
Replies: 1 comment 2 replies
-
Error: In my case, I found the solution. It was for the following issue:
See the image below. I simply Solution: Version
|
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
AvaniBaheti
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Error:
**SyntaxError: invalid or unexpected token**
In my case, I found the solution. It was for the following issue:
I was importing Tailwind incorrectly into one of my components.
See the image below. I simply
removed this import
and the build error no longer occurred.Solution:
Check your project to see if there is any improper import in your components or pages in the project.
Version