storybookjs / builder-vite

A builder plugin to run and build Storybooks with Vite
MIT License
886 stars 109 forks source link

[Bug] Uncaught SyntaxError: ambiguous indirect export: mdx #537

Open chrisolsen opened 1 year ago

chrisolsen commented 1 year ago

What version of vite are you using?

3.2.5

System info and storybook versions

System: OS: Linux 6.0 Fedora Linux 37 (Workstation Edition) CPU: (4) x64 Intel(R) Core(TM) i5-6200U CPU @ 2.30GHz Binaries: Node: 18.12.1 - ~/.nvm/versions/node/v18.12.1/bin/node npm: 8.19.2 - ~/.nvm/versions/node/v18.12.1/bin/npm Browsers: Firefox: 108.0 npmPackages: @storybook/addon-actions: ^6.5.15 => 6.5.15 @storybook/addon-backgrounds: ^6.5.15 => 6.5.15 @storybook/addon-docs: ^6.5.15 => 6.5.15 @storybook/addon-essentials: ~6.5.9 => 6.5.15 @storybook/addon-measure: ^6.5.15 => 6.5.15 @storybook/addon-outline: ^6.5.15 => 6.5.15 @storybook/builder-vite: ~0.2.6 => 0.2.6 @storybook/client-api: ^6.5.15 => 6.5.15 @storybook/client-logger: ^6.5.15 => 6.5.15 @storybook/core-server: ~6.5.9 => 6.5.15 @storybook/react: ~6.5.9 => 6.5.15 @storybook/react-vite: 7.0.0-alpha.25 => 7.0.0-alpha.25

Describe the Bug

Storybook starts without any terminal errors, but when localhost:4400 is opened the story doesn't load and I see the following error in the console

Uncaught SyntaxError: ambiguous indirect export: mdx

Link to Minimal Reproducible Example

https://github.com/chrisolsen/vite-storybook-issue-2

Participation