-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Support for vite@6
async plugins
#7014
Comments
I was just made aware of that this was reverted as part of https://github.com/vitest-dev/vitest/releases/tag/v2.1.7, but i would still keep this issue open, as i was unable to find any other issue that's referencing vite 6 support. But please feel free to close. |
2.1.7 broke npm run check for us:
|
Vitest 2 doesn't support Vite 6 and will not support Vite 6 officially. You can use If you migrated to Vite 6, use Vitest 3 (currently in beta), release is planned for January. If you see any type errors in your config, check the lockfile to confirm that you have several Vite versions installed and resolve it with your package manager. |
Describe the bug
Using
@sveltejs/kit@2.9.0
andvitest@2.1.8
makes tsc fail with the followingvite.config.ts
Problem was first reported in sveltejs/cli#341. While a user is adding
vitest
to his project, we are switching out the imports insidevite.config.ts
like this:This is likely caused by
vite@6
allowing plugins of typePromise<whatever>
. Looks like this change was not backported to config used byvitest
Reproduction
https://stackblitz.com/edit/node-zjetgl?file=vite.config.ts
Wait for
npm i
to complete. Runnpm run check
. The issue will appear. IntelliSense also complainsSystem Info
Used Package Manager
npm
Validations
The text was updated successfully, but these errors were encountered: