Skip to content

@tailwindcss/vite incompatible with Vite 8 dependency #19798

@stipe-s

Description

@stipe-s

Describe the bug

When installing @tailwindcss/vite in a project using Vite 8, npm fails to resolve the dependency tree because the plugin only supports Vite versions ^5.2.0 || ^6 || ^7.

Error message

npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree

Found: vite@8.0.0
node_modules/vite
dev vite@"^8.0.0" from the root project

Could not resolve dependency:
peer vite@"^5.2.0 || ^6 || ^7" from @tailwindcss/vite@4.2.1
node_modules/@tailwindcss/vite

Steps to reproduce

  1. Create a new project with Vite
npm create vite@latest
  1. Select React (TypeScript variant)

  2. Install Tailwind Vite plugin

npm install @tailwindcss/vite
  1. npm throws a dependency resolution error.

Expected behavior

@tailwindcss/vite should either:

  • support Vite 8, or
  • clearly warn users that the plugin currently only supports Vite ≤ 7.

Environment

  • Node: (your node version)
  • npm: (your npm version)
  • Vite: 8.0.0
  • @tailwindcss/vite: 4.2.1
  • OS: Windows

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions