-
-
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
[Bug]: Extreme performance regression from Storybook v6 -> v7 #22011
Comments
@dhess do you have a reproduction for this? if anything SB7 should be generally faster than SB6, so it would be great to get to the bottom of what's going wrong in your project |
Unfortunately, no, as the project is private. |
I have a repro repo of this in a project using yarn. It is available here: https://github.com/AndrewADev/storybook-react-ts-vite-slow-build I set that repo up using a link I found for creating a repro repo (was in the process of submitting an issue myself), which set it up with the latest alpha of v7. I initially discovered this issue in a project with v7.0.2 Storybook though. Also, this reproduces for me locally, run from within git bash on Windows, as well as hosted in GH Actions (workflow available in the above repo). My guess was that it seemed to be processing packages from |
See: storybookjs/storybook#22011 storybookjs/storybook#22013 Once the latter PR is included in a Storybook release, we can undo this workaround.
#22013 looks like it will fix this issue: #22013 (comment) |
Thanks, all, for the remarkably fast turnaround on this! |
See: storybookjs/storybook#22011 storybookjs/storybook#22013 Once the latter PR is included in a Storybook release, we can undo this workaround.
ZOMG!! I just released https://github.com/storybookjs/storybook/releases/tag/v7.1.0-alpha.1 containing PR #22013 that references this issue. Upgrade today to the
|
Ta-da!! I just released https://github.com/storybookjs/storybook/releases/tag/v7.0.3 containing PR #22013 that references this issue. Upgrade today to the
|
I am facing the same issue with SB 7.4, except i am using webpack version 5.88.2. can someone please help? |
it turns out the following in main.ts didn't work.
had to add |
Describe the bug
On an
ubuntu-latest
GitHub runner,pnpm storybook build
used to take about 3 minutes for our project, but now it takes about 18 minutes. (I see a similar slowdown when runningpnpm storybook build
locally on an M1 Max MacBook Pro 16", though the absolute times are shorter.)The project migrated very cleanly, and without any significant issues, using
pnpm dlx storybook@latest upgrade
. The only bit of the project that required any manual cleanup was our.storybook/main.ts
file, because we're using Vite.To Reproduce
No response
System
Additional context
Our
.storybook/main.ts
is now more or less straight out of the documentation. The only difference is that we include our stories alongside the component source code:Our Vite package versions are:
The text was updated successfully, but these errors were encountered: