-
-
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
Regression: Slowed Builds with react-docgen-typescript #7998
Comments
@clintandrewhall A few questions:
|
To be clear: this is exactly like the behavior in #6340, which was quickly solved by the change in RDTL 3.1.1. I was surprised to see it return. I've pored over the code there, and elsewhere, and don't see a clear cause. Rolling back those dependencies has no effect, either. |
@clintandrewhall what do you think about #7942 - loading prop tables from file and generating prop tables manually only when interfaces are changed. Linked in there is also my custom scripts. |
@atanasster @shilman a prop table cache would be sick. |
Hi everyone! Seems like there hasn't been much going on in this issue lately. If there are still questions, comments, or bugs, please feel free to continue the discussion. Unfortunately, we don't have time to get to every issue. We are always open to contributions so please send us a pull request if you would like to help. Inactive issues will be closed after 30 days. Thanks! |
Any update on this? I don't want this to go stale... it's still a time sync for us. |
@clintandrewhall i am getting back from an extended vacation and we discussed with michael to make my scripts into an external webpack plugin. Hopefully soon, but in the meantime you can try my wip scripts as i posted and let me know your input. |
@clintandrewhall : |
@shilman any update as to when this issue will be fixed and what version it will be fixed in? |
@The-Code-Monkey yes. we are recommending a new configuration in 6.0 and will be updating the docs this week. |
@atanasster Sorry to but in, but since I'm experiencing this issue as well, I thought I'd try your plugin. Our build time almost doubled. Went from 54sec to 1.8min 🤔 Any ideas? |
@The-Code-Monkey @thany 6.0 recommendations updated here https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#react-prop-tables-with-typescript |
Excellent! But unfortunately that requires Storybook 6.0, doesn't it? |
@thany I believe it should work with 5.3 as well. Please give it a try! |
We've just released zero-config typescript support in 6.0-beta. Please upgrade and test it! Thanks for your help and support getting this stable for release! |
I recently had to wipe node modules and package-lock while debugging an issue when implementing jest+enzyme into a project and am now getting extremely slow start times for Storybook. Initially I was getting this error:
but seemed to have resolved it with this. Can't share my repo since it's for my company, but here's my main.ts:
and all Storybook related dependencies:
Nothing has changed and I'm wondering what to be looking out for in my config that might need to be updated? It usually takes 1 minute or more for Storybook to start. |
@coreybruyere All of your storybook package versions should match. You can do this automatically (recommended) by:
|
@shilman - Thanks. That seems to have worked. Not sure what happened to my babelrc but I ended up having to add these changes like someone else noted in this thread:
|
We’re cleaning house! Storybook has changed a lot since this issue was created and we don’t know if it’s still valid. Please open a new issue referencing this one if:
|
Describe the bug
This is a regression from the resolved state of #6430. It may be an issue with RDTL, perhaps not. They have styleguidist/react-docgen-typescript#112 still open.
In that bug, @strothj and @denieler were able to improve
react-docgen-typescript-loader
to reuse the parser instance to improve performance. I've updated our dependencies to5.1.11
and there has been a regression.If I comment
react-docgen-typescript-loader
out, I get much faster build times:To Reproduce
Steps to reproduce the behavior:
You can view our config here.
The text was updated successfully, but these errors were encountered: