You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Problem was first reported in sveltejs/cli#341. While a user is adding vitest to his project, we are switching out the imports inside vite.config.ts like this:
// without vitestimport{defineConfig}from'vite';// with vitestimport{defineConfig}from"vitest/config";
This is likely caused by vite@6 allowing plugins of type Promise<whatever>. Looks like this change was not backported to config used by vitest
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.
Exceptionless\src\Exceptionless.Web\ClientApp\vite.config.ts:14:9
Error: No overload matches this call.
The last overload gave the following error.
Type 'Promise<Plugin<any>[]>' is not assignable to type 'PluginOption'.
Type 'Promise<Plugin<any>[]>' is not assignable to type 'Promise<false | Plugin<any> | PluginOption[] | null | undefined>'.
Type 'Plugin<any>[]' is not assignable to type 'false | Plugin<any> | PluginOption[] | null | undefined'.
Type 'Plugin<any>[]' is not assignable to type 'PluginOption[]'.
Type 'Plugin<any>' is not assignable to type 'PluginOption'.
niemyjski
added a commit
to exceptionless/Exceptionless
that referenced
this issue
Dec 4, 2024
Describe the bug
Using
@sveltejs/[email protected]
and[email protected]
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: