-
-
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]: fast refresh is very slow when using react-docgen-typescript
since v8.1.0
#28269
Comments
@valentinpalkovic any idea what's going on here? |
I am having the same issue, and we are not able to work with Changing to using
|
Any Update on that? |
Same issue, held me back from upgrading for a long time but I finally caved and looked into it more. The ts docgen dependency, This checks out because in storybook 8.1.0 changelog:
and the commit for the docgen plugin was dealing with HMR issues. Edit: The developer experience for 10s+ reload times is not workable and your options are to:
|
I have found by default it is including all node_modules typescript: {
reactDocgen: 'react-docgen-typescript',
reactDocgenTypescriptOptions: {
include: ['src/**/*.{ts,tsx}']
}
} |
I can confirm this is happening for us as well. Storybook v7 would reload so quickly it was never a problem, so it was definitely sub-one second. Now on v8 it takes between 10-20 seconds for changes to reload properly. It's absolutely unusable. We have to switch to Storybook 8.2.9 |
This is definitely related to |
Describe the bug
Upgrading to storybook v8.1.0 and higher when having https://storybook.js.org/docs/api/main-config-typescript#reactdocgen set to
react-docgen-typescript
drastically increases the time of fast refresh (from a few milliseconds to several seconds, on an empty project).Reproduction link
https://stackblitz.com/~/github.com/cdelfabbro/demo-issue-sb-docgen
Reproduction steps
label
prop of thePrimary
story (line 21) then save.reactDocgen: "react-docgen-typescript"
byreactDocgen: "react-docgen"
(line 15) then save.For the step 5: downgrade to storybook
v8.0.10
will have the same result.System
Additional context
No response
The text was updated successfully, but these errors were encountered: