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
I'm running a Bun workspaces monorepo with various components and storybook, Storybook is rendering Vue and using Vite as the bundler.
Has anyone had success with this? For whatever reason, Storybook (vite?) seems to try reading outside the package.
bun run build-storybook
$ storybook build
@storybook/cli v8.1.10
info => Cleaning outputDir: storybook-static
info => Loading presets
info => Building manager..
info => Manager built (65 ms)
info => Building preview..
vite v5.3.1 building for production...
./sb-common-assets/fonts.css doesn't exist at build time, it will remain unchanged to be resolved at runtime
✓ 33 modules transformed.
x Build failed in 205ms
=> Failed to build the preview
[vite:load-fallback] Could not load /Users/redacted/dev/my-project/test-apps/react/jsx-runtime (imported by src/stories/Typography.mdx): ENOENT: no such file or directory, open '/Users/redacted/dev/my-project/test-apps/react/jsx-runtime'
...
I can't figure out why it would look outside of the package for stories?
the tl;dr is that storybook is a package that has dependencies of two other packages so I can render the components (packages/vue, packages/vue-legacy) in Storybook for sharing out/testing.
All of the stories/mdx are in packages/storybook/src
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Summary
I'm running a Bun workspaces monorepo with various components and storybook, Storybook is rendering Vue and using Vite as the bundler.
Has anyone had success with this? For whatever reason, Storybook (vite?) seems to try reading outside the package.
I can't figure out why it would look outside of the package for stories?
My setup:
the tl;dr is that
storybook
is a package that has dependencies of two other packages so I can render the components (packages/vue, packages/vue-legacy) in Storybook for sharing out/testing.All of the stories/mdx are in
packages/storybook/src
Additional information
My
packages/storybook/.storybook/main.ts
:vite.config.ts
:Create a reproduction
No response
Beta Was this translation helpful? Give feedback.
All reactions