-
-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
Props slot not render right in Stories when use optional chain in component. #11883
Comments
I'm guessing this is a problem with |
Here is I found reactjs/react-docgen#463 |
So yeah, looks like babel made a change that was intentional, and ast-types needs to make an update. benjamn/ast-types#383 One potential work around that is suggested here reactjs/react-docgen#463 is to pin the babel/core and babel/parser versions to 7.10.5. I don't know if that is the best course of action for storybook to take though. Maybe we just wait it out to get resolved itself? |
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! |
ast-types has updated this! There is currently a PR for react-docgen to update their dependencies, I'll make a PR here to update to the newest react-docgen when that change is merged. |
It looks like storybook doesn't need any updates for this to work--as far as I can tell, all that's left is for anyone with this issue to update any local dependencies on react-docgen to the latest version (5.3.0) |
I'm experiencing same issue with Storybook v6.0.21 after clearing up Any quick fix for that (other than keeping old I've checked the bare bones |
@idbartosz looks like it's fixed in |
@shilman so this will be fixed in next SB release because I see fix was merged on their side? |
Once they release and you upgrade. React-docgen is not a direct dependency so i don't think storybook needs to do anything. |
Yo-ho-ho!! I just released https://github.com/storybookjs/storybook/releases/tag/v6.1.0-alpha.24 containing PR #12748 that references this issue. Upgrade today to the
Closing this issue. Please re-open if you think there's still more to do. |
Yo-ho-ho!! I just released https://github.com/storybookjs/storybook/releases/tag/v6.0.27 containing PR #12748 that references this issue. Upgrade today to the
|
Describe the bug
Props slot not render right in Stories(or MDX) when use optional chain in component.
There is [No props found for this component] placeholder in props slot. And props slot render right content when removed optional chain.
Code snippets
System:
Additional context
I added
@babel/plugin-proposal-optional-chaining
inaddons
config but it's not working.The text was updated successfully, but these errors were encountered: