-
-
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
Docgen: Errors on components whose names are keywords #11980
Comments
do you have a repro i can look at? i recently updated that part of the code and it's possible that you're hitting some kind of corner case bug |
I went through and disabled story by story until I found the one causing the crash. It was below, where Toaster is a function which has to be called as
My mistake, thanks for having a look at the issue. I'll leave the issue open if you want to take further action. @shilman |
I had a similar problem in a project after upgrading Storybook, turned out I head a react component called |
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! |
@TheKnarf nailed this one. A file named |
Same issue here. |
Yep, exactly the same issue here - I have |
Same issue, |
|
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! |
Still a bug |
Same issue. For me it was a folder called switch with an index.tsx. Renaming the folder solved the issue. |
If you want this fixed, please upvote by adding a 👍 to the issue description. We use this to help prioritize! |
Please upvote the fix in styleguidist/react-docgen-typescript#313 |
same here |
Manually set the display name solved this for me switch.tsx |
Confirming this solution worked in my case. Nice fix @PetterRuud! |
I think this got fixed in 7.0 beta. |
As of 7.6.4 I'm still seeing this issue in Storybook. Above fixes work. |
Yeps, versions 7.6.12 If you had a problem with the switch component in the storybook, try changing it to "toogle", or similar names. The problem itself is the name guys |
The storybook project builds fine:
When I load the page I get a cryptic Javascript error:
My deps are as below (let me know if there are other relevant deps):
Not really sure where to start debugging, any ideas on what could be wrong?
The text was updated successfully, but these errors were encountered: