-
-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Closed as duplicate of#19789
Description
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
- Create a new project with Vite
npm create vite@latest
-
Select React (TypeScript variant)
-
Install Tailwind Vite plugin
npm install @tailwindcss/vite
- 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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels