@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.
Replies: 1 comment 3 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.
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