-
|
I’m using Vike and Tailwind CSS v4 to build an SSG site. I’m having an issue with Tailwind, the responsive breakpoints aren’t working, and I can’t figure out why. PS: With Tailwind CSS v3, everything worked fine. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
This is a common issue when migrating from Tailwind v3 to v4 — the architecture changed significantly. Here's how to fix it with Vike: 1. Install the v4 Vite pluginTailwind v4 has a dedicated Vite plugin (recommended for all Vite-based projects like Vike): npm install tailwindcss @tailwindcss/viteRemove old v3 PostCSS packages if you have them: 2. Update
|
Beta Was this translation helpful? Give feedback.
Actually, I had already done all that and everything was correct. But it was strange that it was displaying like that.
So I opened it in a clean browser and it worked normally. That’s when I realized the problem was coming from my browser.
I didn’t suspect it at first because Tailwind CSS v3 usually works fine for me. I removed some browser extensions and the issue was fixed.
I’m not exactly sure where the problem came from or how to explain it technically, but everything is working now.
Thank you very much for your response.