Storybook build is failing in Vite app using "@storybook/builder-vite": "^0.2.2", #481
satyendera
started this conversation in
General
Replies: 2 comments 6 replies
-
Hi, what version of storybook are you using? Can you share your |
Beta Was this translation helpful? Give feedback.
2 replies
-
@IanVS Found this error during the build with vite. Any idea what may cause this issue? |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When we build storybook build facing this error
[vite]: Rollup failed to resolve import "window" from "node_modules/@storybook/channel-websocket/dist/esm/index.js".
This is most likely unintended because it can break your application at runtime.
If you do want to externalize this module explicitly add it to
build.rollupOptions.external
transforming (2341) node_modules/@storybook/addon-measure/node_modules/core-js/internals/regexp-flags.jsinfo => Manager built (17 s)
ERR! Error: [vite]: Rollup failed to resolve import "window" from "node_modules/@storybook/channel-websocket/dist/esm/index.js".
Beta Was this translation helpful? Give feedback.
All reactions