diff --git a/.storybook/main.ts b/.storybook/main.ts index db9a6fbd1b..b9278f6df2 100644 --- a/.storybook/main.ts +++ b/.storybook/main.ts @@ -127,7 +127,11 @@ const config: StorybookConfig = { // Exclude legacy Switch component from react-docgen as it's intended to be removed // in a future release and causes confusion for Storybook generating docs. reactDocgenTypescriptOptions: { + compilerOptions: { + esModuleInterop: true, + }, exclude: ["**/switch/switch.component.tsx"], + savePropValueAsString: true, }, },