Closed nev3rm0re closed 1 year ago
I'd suggest trying out Storybook 7.0 if you can. It automatically uses your project's vite.config.js file, and allows ESM config files. You can upgrade using npx sb@next upgrade --prerelease
.
If you're not able to use Storybook 7, can you please share a reproduction so that I can help troubleshoot what's goin on? And if you can't do that, can you share your .storybook/main.cjs
file?
What version of
vite
are you using?vite/4.0.3 darwin-arm64 node-v18.13.0
System info and storybook versions
Environment Info:
System: OS: macOS 12.0.1 CPU: (8) arm64 Apple M1 Binaries: Node: 18.13.0 - ~/.nvm/versions/node/v18.13.0/bin/node Yarn: 1.22.19 - /opt/homebrew/bin/yarn npm: 8.19.3 - ~/.nvm/versions/node/v18.13.0/bin/npm Browsers: Chrome: 108.0.5359.124 Safari: 15.1 npmPackages: @storybook/addon-actions: ^6.5.15 => 6.5.15 @storybook/addon-essentials: ^6.5.15 => 6.5.15 @storybook/addon-links: ^6.5.15 => 6.5.15 @storybook/builder-vite: ^0.2.7 => 0.2.7 @storybook/vue: ^6.5.15 => 6.5.15
Describe the Bug
Run
npx sb init --builder @storybook/builder-vite
. Updatedmain.js
withviteFinal()
Attempting to runnpm run storybook
, but get errors on default stories:When run without
viteFinal
I'm getting different error, also related to importing components:Link to Minimal Reproducible Example
No response
Participation