Skip to content

TailwindCSS classes not having an effect ? #78216

Answered by YO-SC
YO-SC asked this question in Help
Discussion options

You must be logged in to vote

I won't say anything about a solution perse. I will just tell my story for now.

So, in the project that I was having problems with tailwindcss classes not having an effect on the dom. I had a app/test/page.tsx file. The file contained the relevant code snippet found on the discussion above. I then created a app/test2/page.tsx and app/some-page/page.tsx. Interestingly, tailwind worked as normal on the some-page page. Meanwhile, the test and test2 pages had the problem. I used the same code snippet for all 3. I then renamed test2 to wth and it worked as normal too!. I then renamed test to something-else and it tailwind worked as normal there too.

I think something related to that test filen…

Replies: 3 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@YO-SC
Comment options

Comment options

You must be logged in to vote
2 replies
@YO-SC
Comment options

@icyJoseph
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by YO-SC
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
3 participants