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
rbardini
changed the title
[Bug]: Preview broken in dev mode with web-components-vite - module is undefined
[Bug]: Preview broken in v7 dev mode with web-components-vite - module is undefined
Mar 1, 2023
Describe the bug
Storybook's preview is broken in
dev
mode usingweb-components-vite
framework:I tried mocking
module
inconfig.define
andpreview-head.html
, but neither worked. Looks like it relates to this line:storybook/code/lib/builder-vite/src/plugins/external-globals-plugin.ts
Line 58 in 9783bb5
Although I also tried with v7.0.0-beta.35, which doesn't include #20698, and got the same error.
To Reproduce
I couldn't reproduce it with the
Lit Vite (TS)
template (might be specific to my project), but here's the command I used to initialize Storybook:System
Additional context
build
mode works fine.The text was updated successfully, but these errors were encountered: