You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Attempting to build a storybook using builder-vite with latest Vite betas fails. Development environment works as expected.
To reproduce:
pnpm dlx storybook@latest init
Choose vite+react
pnpm install -D vite@beta
pnpm build-storybook
Results in:
> storybook build
@storybook/core v8.4.2
info => Cleaning outputDir: storybook-static
info => Loading presets
info => Building manager..
info => Manager built (139 ms)
info => Building preview..
info Using tsconfig paths for react-docgen
vite v6.0.0-beta.6 building for production...
✓ 0 modules transformed.
x Build failed in 24ms
=> Failed to build the preview
[vite:build-html] Could not load ./sb-preview/runtime.js: ENOENT: no such file or directory, open './sb-preview/runtime.js'
file: ./iframe.html
Error: Could not load ./sb-preview/runtime.js: ENOENT: no such file or directory, open './sb-preview/runtime.js'
Hey @leiit thank you so much for reporting this issue, investigating which version caused it and providing a repro! This is just perfect to help us get a fix sooner. We've contacted the Vite team and a fix is on the way.
I'll be closing this issue since it's not related to Storybook per se. The fix PR in Vite has been merged but not yet released, I assume it will happen soon!
Describe the bug
Attempting to build a storybook using
builder-vite
with latest Vite betas fails. Development environment works as expected.To reproduce:
pnpm dlx storybook@latest init
pnpm install -D vite@beta
pnpm build-storybook
Results in:
Versions up to
[email protected]
worked fine. See their changelog for what changed between betas 5 & 6.Reproduction link
https://github.com/leiit/sb-vite6
Reproduction steps
System
Additional context
No response
The text was updated successfully, but these errors were encountered: