-
-
Notifications
You must be signed in to change notification settings - Fork 7.4k
Description
Describe the bug
The @tailwindcss/vite plugin currently declares a peer dependency of "vite": "^5.2.0 || ^6".
With the release of [email protected], any attempt to install Tailwind's official Vite plugin in a fresh Vite 7 project fails due to a dependency resolution error:
ERESOLVE unable to resolve dependency tree
peer vite@"^5.2.0 || ^6" from @tailwindcss/[email protected]
This breaks compatibility with the current npm create vite@latest workflow.
If the plugin is compatible with Vite 7, the peer dependency needs to be updated. If not yet tested, it might help to clarify compatibility in the docs or postpone release adoption.
I’m happy to test or help with a PR once compatibility is confirmed.
Reproduction
https://github.com/code-pankaj/vite7-issue-with-tailwindcss
Steps to reproduce
npm create vite@latest
//select React and Typescript
cd
npm install
npm install tailwindcss @tailwindcss/vite
System Info
System:
OS: Linux 6.11 Ubuntu 24.04.2 LTS 24.04.2 LTS (Noble Numbat)
CPU: (4) x64 Intel(R) Core(TM) i3-1005G1 CPU @ 1.20GHz
Memory: 2.03 GB / 7.50 GB
Container: Yes
Shell: 5.9 - /usr/bin/zsh
Binaries:
Node: 24.2.0 - ~/.nvm/versions/node/v24.2.0/bin/node
Yarn: 1.22.22 - ~/.nvm/versions/node/v24.2.0/bin/yarn
npm: 11.3.0 - ~/.nvm/versions/node/v24.2.0/bin/npm
bun: 1.2.15 - ~/.bun/bin/bun
Browsers:
Brave Browser: 137.1.79.126
Chrome: 137.0.7151.119Used Package Manager
npm
Logs
No response
Validations
- Follow our Code of Conduct
- Read the Contributing Guidelines.
- Read the docs.
- Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- Make sure this is a Vite issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to vuejs/core instead.
- Check that this is a concrete bug. For Q&A open a GitHub Discussion or join our Discord Chat Server.
- The provided reproduction is a minimal reproducible example of the bug.