diff --git a/code/frameworks/react-vite/src/preset.ts b/code/frameworks/react-vite/src/preset.ts index c9e5f33f16ce..bc9f83f65170 100644 --- a/code/frameworks/react-vite/src/preset.ts +++ b/code/frameworks/react-vite/src/preset.ts @@ -43,7 +43,7 @@ export const viteFinal: StorybookConfig['viteFinal'] = async (config, { presets } else if (reactDocgen) { const { reactDocgen } = await import('./plugins/react-docgen'); // Needs to run before the react plugin, so add to the front - plugins.unshift(reactDocgen()); + plugins.unshift(reactDocgen() as any); } return config; diff --git a/code/frameworks/svelte-vite/src/preset.ts b/code/frameworks/svelte-vite/src/preset.ts index 8006514d2fde..4e63182925a4 100644 --- a/code/frameworks/svelte-vite/src/preset.ts +++ b/code/frameworks/svelte-vite/src/preset.ts @@ -22,7 +22,7 @@ export function readPackageJson(): Record | false { export const viteFinal: StorybookConfig['viteFinal'] = async (config, { presets }) => { const { plugins = [] } = config; - plugins.push(svelteDocgen(config)); + plugins.push(svelteDocgen(config) as any); return { ...config, diff --git a/code/frameworks/vue3-vite/src/preset.ts b/code/frameworks/vue3-vite/src/preset.ts index 3f35bed8b1ce..dc7e99dcad4c 100644 --- a/code/frameworks/vue3-vite/src/preset.ts +++ b/code/frameworks/vue3-vite/src/preset.ts @@ -22,7 +22,7 @@ export function readPackageJson(): Record | false { export const viteFinal: StorybookConfig['viteFinal'] = async (config, { presets }) => { const { plugins = [] } = config; - plugins.push(vueDocgen()); + plugins.push(vueDocgen() as any); const updated = { ...config,