diff --git a/code/frameworks/svelte-vite/src/utils.ts b/code/frameworks/svelte-vite/src/utils.ts index a59ab840ced7..37a32cc2499f 100644 --- a/code/frameworks/svelte-vite/src/utils.ts +++ b/code/frameworks/svelte-vite/src/utils.ts @@ -25,8 +25,7 @@ export async function handleSvelteKit(plugins: PluginOption[], options: Options) ]); if (hasSvelteKitPlugins && framework !== '@storybook/sveltekit') { - logger.error( - dedent` + throw new Error(dedent` We've detected a SvelteKit project using the @storybook/svelte-vite framework, which is not supported in Storybook 7.0 Please use the @storybook/sveltekit framework instead. You can migrate automatically by running @@ -34,8 +33,6 @@ export async function handleSvelteKit(plugins: PluginOption[], options: Options) npx storybook@latest automigrate See https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#sveltekit-needs-the-storybooksveltekit-framework - ` - ); - throw new Error(); + `); } }