-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[7.0] Vite storybook crashes when first opened #19015
Comments
Ok, I understand the problem. I'll explain it here, as I suspect you'll be interested @IanVS. The problem is that during the bootup process, two things happen:
However, the preview is already in the process of rendering the story due to 2. Usually it has already finished and 4. is seen as a no-op. However if the story in 2. is "preparing" still (i.e. calling I guess for whatever reason this timing was never an issue in docs mode for webpack 🤷. Definitely an important issue to fix! |
Thanks a ton for figuring this out and explaining it! |
I'm no longer able to reproduce this in alpha.27. I'll keep it open for a few more days in case it comes back or anyone else experiences it. |
I saw it again in the sandbox after we spoke @IanVS so I definitely want to keep digging! |
I just saw |
Olé!! I just released https://github.com/storybookjs/storybook/releases/tag/v7.0.0-alpha.29 containing PR #19071 that references this issue. Upgrade today to the
Closing this issue. Please re-open if you think there's still more to do. |
Describe the bug
When first opening storybook, an error is shown:
Refreshing the page will work fine. It seems to only happen if there's no
?path=
in the url.To Reproduce
This can be seen in the
react-vite/default-js
sandbox, or after creating a fresh vite storybook project.System
The text was updated successfully, but these errors were encountered: