Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tailwindcss/vite 4.0.8 or higher with qwik doesn't render classes #17286

Closed
erikrj opened this issue Mar 19, 2025 · 2 comments
Closed

tailwindcss/vite 4.0.8 or higher with qwik doesn't render classes #17286

erikrj opened this issue Mar 19, 2025 · 2 comments

Comments

@erikrj
Copy link

erikrj commented Mar 19, 2025

What version of Tailwind CSS are you using?

tailwindcss 4.0.14
@tailwindcss/vite 4.0.8 or higher

What build tool (or framework if it abstracts the build tool) are you using?

Qwik 1.12.1

What version of Node.js are you using?

v22.13.1

What browser are you using?

Chrome latest

What operating system are you using?

macOS Sequoia 15.3.1

Reproduction URL

See https://github.com/erikrj/2025-03-19-bug-report-qwik-tailwindcss-vite-4.0.8
I have included an updated README.md. Simply modify the @tailwindcss/vite dependency to 4.0.7 and it works as expected. Every version between 4.0.8 and 4.0.14 breaks.

Describe your issue

When I use any version of @tailwindcss/vite 4.0.8 or higher my tailwindcss classes to not render properly. If I pin the version to @tailwindcss/vite 4.0.7, they work. This is a vanilla empt qwik project with tailwindcss installed. See the README.md of the repo I provided above.

@erikrj erikrj changed the title tailwindcss/vite 4.0.8 with qwik doesn't render styles tailwindcss/vite 4.0.8 with qwik or higher doesn't render classes Mar 19, 2025
@erikrj erikrj changed the title tailwindcss/vite 4.0.8 with qwik or higher doesn't render classes tailwindcss/vite 4.0.8 or higher with qwik doesn't render classes Mar 19, 2025
@philipp-spiess
Copy link
Member

Hey! I checked out your repro locally and it seems like regardless of the versions used, the Vite plugin always works. Can you explain what exactly is not working for you? 🤔 All I did basically was pnpm install and pnpm run dev and the text is rendered with the right size. I then upgraded to 4.0.14 (both the tailwindcss and the @tailwindcss/vite plugin) and it would still work.

@erikrj
Copy link
Author

erikrj commented Mar 22, 2025

I'm unable to reproduce this issue now. It must have been something local, but I have no explanation. I'll close this out. I appreciate you taking the time to give it a try.

@erikrj erikrj closed this as completed Mar 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants