-
Notifications
You must be signed in to change notification settings - Fork 50
Open
Labels
Description
Environment
What version are you running?
Vite 7.1.5
Sentry Vite Plugin: 4.3.0
Steps to Reproduce
- Bump sentry vite plugin from 3.6.1 to 4.3.0 (actually any 4.x.x produces the same output)
- Run typecheck
tsc -b
- I've a TS error in defineConfig line
Expected Result
It should work in the same way as Sentry Vite Plugin v3 works.
Actual Result
TS Error

TS2769: No overload matches this call.
The last overload gave the following error.
Argument of type
({mode}: ConfigEnv) => {
plugins: ("" | PluginOption | {
name: string;
configResolved(resolvedConfig: ResolvedConfig): void;
configureServer: () => void;
writeBundle: () => void;
} | Plugin$1<...>)[];
build: { ...; };
resolve: { ...; };
server: { ...; };
test: { ...; };
}
is not assignable to parameter of type UserConfigExport
Type
({mode}: ConfigEnv) => {
plugins: ("" | PluginOption | {
name: string;
configResolved(resolvedConfig: ResolvedConfig): void;
configureServer: () => void;
writeBundle: () => void;
} | Plugin$1<...>)[];
build: { ...; };
resolve: { ...; };
server: { ...; };
test: { ...; };
}
is not assignable to type UserConfigFnObject
Call signature return types
{
plugins: ("" | PluginOption | {
name: string;
configResolved(resolvedConfig: ResolvedConfig): void;
configureServer: () => void;
writeBundle: () => void;
} | Plugin$1<...>)[];
build: { ...; };
resolve: { ...; };
server: { ...; };
test: { ...; };
}
and UserConfig are incompatible.
The types of plugins are incompatible between these types.
Type
("" | PluginOption | {
name: string;
configResolved(resolvedConfig: ResolvedConfig): void;
configureServer: () => void;
writeBundle: () => void;
} | Plugin$1<any>)[]
is not assignable to type PluginOption[]
Type
"" | PluginOption | {
name: string;
configResolved(resolvedConfig: ResolvedConfig): void;
configureServer: () => void;
writeBundle: () => void;
} | Plugin$1<any>
is not assignable to type PluginOption
Type "" is not assignable to type PluginOption
Metadata
Metadata
Assignees
Labels
Projects
Status
Waiting for: Community