Tailwindcss not compiling components or utilites, but base works #6334
Replies: 12 comments 11 replies
-
I have the same problem. |
Beta Was this translation helpful? Give feedback.
-
I have the same problem too. Any help? |
Beta Was this translation helpful? Give feedback.
-
Same here. Running I have removed
is somehow not extracted into my output file. Somehow the paths are not correctly set up I guess? |
Beta Was this translation helpful? Give feedback.
-
For me the compile does not work when including custom colors. All other colors used in the template (and specified as safelist in the config file) are not compiled, only the custom one gets compiled. Also have to be very specific with the path, more on content paths I found helpful from here: |
Beta Was this translation helpful? Give feedback.
-
I had this issue and resolved it by removing spaces in the glob patterns listed in the I fixed tailwind after migration to v3 by doing the following: - content: ["src/**/*.{ts, tsx, js, jsx, htm}"]
+ content: ["src/**/*.{ts,tsx,js,jsx,htm}"] |
Beta Was this translation helpful? Give feedback.
-
I have the same issue as mentioned in the topic. Please help me if anyone can solve it. |
Beta Was this translation helpful? Give feedback.
-
ariants like focus-visible, active, disabled, and others are not normally enabled by default due to file-size considerations. Since this library generates styles on demand, you can use any variant you want, whenever you want. You can even stack them like sm:hover:active:disabled:opacity-75. Never configure your variants again. |
Beta Was this translation helpful? Give feedback.
-
I solved it by adding another path entry to the Originally I had this (default from the Rails 7
I added this entry to the content array and it worked: So now the config looks like
That did the trick. I got this answer from https://dev.to/software_writer/how-to-setup-tailwind-3-on-rails-7-2dbo Hope this helps someone 👍 |
Beta Was this translation helpful? Give feedback.
-
Was getting the same error. Tried all manner of tricks to solve it, later, turns out there was a type
The typo was in not putting the semicolon after each line. This was why a single The correct input.css was:
|
Beta Was this translation helpful? Give feedback.
-
Hey guys I'm having the same issue on a TurboRepo Remixjs project but for a normal Remixjs project this issue is not happening, any idea why? |
Beta Was this translation helpful? Give feedback.
-
I also had the same problem, but I saw and realized that after configuring the project, vscode exits the auto-save mode, and when I reactivated it, it was fixed. |
Beta Was this translation helpful? Give feedback.
-
I'll just comment in case someone else has made the same error as me. I realized that in my tailwind config, I have
But my components were .jsx files, instead of .tsx Renaming the files fixed my problem. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I am trying to use tailwind for the first time and have followed the installation guide on the website. My input css file has only the three @tailwind expressions for base, utilities and components. When I run "npx tailwindcss -i ./src/input.css -o ./dist/output.css", the output generates as if only @tailwind base was present. Any help on resolving or troubleshooting this issue would be much appreciated.
Beta Was this translation helpful? Give feedback.
All reactions