-
Notifications
You must be signed in to change notification settings - Fork 4.5k
vite: Type 'DevEnvironment' is not assignable to type 'Environment'. #16488
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@kuchta Hey! I created a frewsh Vite 6.1.0 setup and added our plugin with the latest version and can not reproduce this issue. Can you please attach a repro for this? |
@philipp-spiess Hi Philipp, it seems like it's doing in projects initialized by deno.
|
I have the same issue on on Adonis application (with inertia) |
Seems like
After updating to latest versions it's OK
|
FYI, deno doesn't run latest versions unless specifically instructed to do so by --reload param denoland/deno#28148 |
This is happening to us in a fully up to date sveltekit project using vite 6.2.0 and tailwind 4.0.9. We're using node (v22.12.0) |
Same when using in a fresh Tanstack Start project, setting the plugin in |
Edit: sorry, I thought this was the vite repo. My experience is probably not relavant here. But I would suggest that anyone having trouble with the tailwind plugin even after updating everything to latest, try removing node_modules and your lockfile, and re-installing. I have a feeling there's a transitive dep issue. |
Tried this - didn't work unfortunately |
Just started a project with Vite and had the same issue "dependencies": {
"@tailwindcss/vite": "^4.0.15",
"@workspace/ui": "workspace:*",
"lucide-react": "^0.483.0",
"react": "^19.0.0",
"react-dom": "^19.0.0",
"tailwindcss": "^4.0.15"
},
"devDependencies": {
"@types/node": "^22.13.11",
"@types/react": "^19.0.12",
"@types/react-dom": "^19.0.4",
"@vitejs/plugin-react": "^4.3.4",
"globals": "^15.15.0",
"react-scan": "^0.3.3",
"typescript": "~5.7.3",
"vite": "^6.2.2"
} Used |
After upgrading Vite, closing and reopening the code editor works for me. I use VS Code. |
I had pnpm workspaces enabled. I had installed the package in the parent project instead of the actual subfolder. Oops. |
Simplest possible vite configuratin has TS error:
vite.config.ts:
Vite now uses PluginOption instead of Plugin, so maybe the plugin needs some update.
The text was updated successfully, but these errors were encountered: