Closed vekunz closed 1 year ago
Thanks, I'll work on updating this package for vite 4 soon. Svelte has gone to ESM only, which is causing some headaches for us.
The latest 0.4.x
version of this package supports Vite 4, but there seems to be an issue with mdx styling. I'm going to close this out, but let me know if it's still an issue, and keep an eye on https://github.com/storybookjs/builder-vite/issues/561 for the styling bug.
What version of
vite
are you using?4.0.0
System info and storybook versions
System: OS: Windows 10 10.0.19045 CPU: (12) x64 Intel(R) Core(TM) i7-9850H CPU @ 2.60GHz Binaries: Node: 16.19.0 - C:\Program Files\nodejs\node.EXE npm: 8.13.2 - C:\Program Files\nodejs\npm.CMD Browsers: Chrome: 108.0.5359.100 Edge: Spartan (44.19041.1266.0), Chromium (108.0.1462.46) npmPackages: @storybook/addon-actions: ^6.5.14 => 6.5.14 @storybook/addon-essentials: ^6.5.14 => 6.5.14 @storybook/addon-interactions: ^6.5.14 => 6.5.14 @storybook/addon-links: ^6.5.14 => 6.5.14 @storybook/builder-vite: ^0.2.5 => 0.2.5 @storybook/svelte: ^6.5.14 => 6.5.14 @storybook/testing-library: ^0.0.13 => 0.0.13
Describe the Bug
With the latest SvelteKit 1.0.0 with Vite 4.0.0, Storybook just crashes right after start with
npm run storybook
.To reproduce, just run
npm install
andnpm run storybook
in the reproduction repo.Link to Minimal Reproducible Example
https://github.com/vekunz/storybook-svelte-error
Participation