Skip to content

tailwind v4.0.0-beta.7 react hydration error with react-router v7 #15417

@sialex-net

Description

@sialex-net

What version of Tailwind CSS are you using?

v4.0.0-beta.7

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

react-router v7
vite v5.4.1

What version of Node.js are you using?

v22.11.0

What browser are you using?

Chrome

What operating system are you using?

macOS

Reproduction URL

https://github.com/sialex-net/rr7-tailwindcss4-beta

Describe your issue

Upgrading tailwindcss to v4-beta causes Minified React error #418 when serving build via wrangler
https://react.dev/errors/418?args[]=

Hydration error does not occur when serving on vite dev server.

Same error occurs with node runtime version of react-router.

Side effect import resolves error.

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