[Bug] Adding builder-vite to main config file launches actual app instead of playground
See original GitHub issueWhat version of vite
are you using?
3.0.0
System info and storybook versions
System: OS: Linux 5.10 Ubuntu 20.04.4 LTS (Focal Fossa) CPU: (16) x64 Intel® Core™ i7-10700 CPU @ 2.90GHz Binaries: Node: 16.15.1 - /usr/bin/node Yarn: 1.22.18 - /usr/bin/yarn npm: 8.11.0 - /usr/bin/npm
Describe the Bug
Hello, I have created a minimal repo here to reproduce the bug. Here is how to do it:
Steps:
1- Clone the repo
2- Execute yarn
inside the repo
3- Execute yarn storybook
inside the repo
4- Visit http://localhost:6006/ and see that the storybook playground is working just fine
5- Stop yarn storybook
6- Go to .storybook/main.ts
7- Uncomment lines 10-12 to enable builder-vite
8- Relaunch yarn storybook
9- The page hosted at localhost:6006 now displays the actual app instead of the playground
Link to Minimal Reproducible Example
: https://github.com/SamuelPoulin/vite-react-typescript-storybook-minimal
Participation
- I am willing to submit a pull request for this issue.
Issue Analytics
- State:
- Created a year ago
- Reactions:3
- Comments:7 (3 by maintainers)
Thanks for providing a reproduction, @SamuelPoulin, that was super helpful since I don’t experience this in my own app or in the examples in this repo (I don’t know why). I’ve found the reason this is happening, and we should have a new version with a fix out soon.
Thanks, I screwed up the config it seems. For now, you can work around this by using
config.appType = 'custom'
inviteFinal
.