Skip to content

Circular dependency because of index.css #17706

Open
@Nefcanto

Description

@Nefcanto

What version of Tailwind CSS are you using?

v4.1.3

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

Vite 6.2.6

What version of Node.js are you using?

v22.14.0

What browser are you using?

Chrome

What operating system are you using?

Debian GNU/Linux 12 (bookworm)

Reproduction URL

https://github.com/Nefcanto/TailwindCyclic

Describe your issue

When I save my main.jsx in my Vite + React + Tailwind project, I see this warning:

vite:hmr circular imports detected: /src/main.jsx -> /src/index.css -> /src/main.jsx

The index.css should not cause cyclic dependency.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions