#17706·Tailwind CSS

Circular dependency because of index.css

Author: NefcantoCreated Apr 17, 2025Updated Aug 6, 2026
Labelsvite

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.

Source: tailwindlabs/tailwindcss