diff --git a/code/lib/cli-storybook/src/automigrate/fixes/vite-config-file.ts b/code/lib/cli-storybook/src/automigrate/fixes/vite-config-file.ts index 84201fd64852..4d1389c41e7d 100644 --- a/code/lib/cli-storybook/src/automigrate/fixes/vite-config-file.ts +++ b/code/lib/cli-storybook/src/automigrate/fixes/vite-config-file.ts @@ -42,6 +42,12 @@ export const viteConfigFile = { return null; } const frameworkName = frameworkPackages[frameworkPackageName]; + + if (frameworkName === 'react-native-web-vite') { + // we don't expect a vite config file for this framework + return null; + } + const isUsingViteBuilder = mainConfig.core?.builder === 'vite' || frameworkPackageName?.includes('vite') ||