Skip to content

@tailwindcss/vite Tailwind CSS HMR not working with Vite 7 + SolidStart v2 #19818

@KipzonderKop101

Description

@KipzonderKop101

What version of Tailwind CSS are you using?

Current TailwindCSS: 4.2.1
Current tailwindcss/vite: 4.2.1

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

Vite: 7.3.1 (or any ^7.0.0 release)
Solid Start: 2.0.0-alpha.2

What version of Node.js are you using?

For example: 25.8.1
npm: 11.11.11

What browser are you using?

Firefox Developer Edition: 149.0b8-1
Vivaldi: 7.8.3925.81-1

What operating system are you using?

EndeavourOS Linux x86_64
6.19.8-arch1-1

Reproduction URL

https://github.com/KipzonderKop101/reproduction-tailwindcss-solid-start

Describe your issue

CSS changes made via Tailwind classes are not picked up by HMR. They only apply after a full page refresh. Regular (non-style) hot reload works fine.
Downgrading from Vite 7 to Vite 6 resolves the issue. All other behavior is identical between the two versions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions