Skip to content

@tailwind base; ^ syntax error: invalid or unexpected token. #13975

Closed Answered by Icegreeen
AvaniBaheti asked this question in Help
Discussion options

You must be logged in to vote

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

"next": "^14.2.3",
"tailwindcss": "3.4.1",

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@AvaniBaheti
Comment options

@pasinduvinsuka
Comment options

@Githarsh94
Comment options

Answer selected by AvaniBaheti
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
4 participants