-
-
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
Docs addon propType description broken when using CRA and emotion's jsx pragma #9150
Comments
Thanks for the repro, although it doesn't work for me out of the box. Did you test it? It complained about not having After that, I tried to install the https://www.npmjs.com/package/@storybook/preset-create-react-app However, it gave me a babel error. @mrmckeb can you take a look? |
I’ll attach some screenshots in a bit |
@shilman ok, I've updated the repo with the missing package. I was deleting some unused packages before committing and accidentally took out I've added screenshots of each example in my repo and here so you can see the problem. I also tried |
I'm unable to test this as I'm hitting this issue... inspect-js/is-set#3. You also should be able to skip the |
I get the same issue when I try to upgrade Storybook. My props are not displayed properly anymore. It does not show any props. |
i think this is the underlying issue: storybookjs/presets#78 will try to work through that, and then look into the emotion issue after it's resolved. thanks for your patience! |
Fixed in Then we can get back to the original issue about jsx pragma 😉 |
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! |
Hey there, it's me again! I am going close this issue to help our maintainers focus on the current development roadmap instead. If the issue mentioned is still a concern, please open a new ticket and mention this old one. Cheers and thanks for using Storybook! |
Can this issue be closed? It appears to have been resolved. |
When using the jsx pragma for the css prop from emotion, storybook's docs addon does not render propType descriptions.
Here is a repo that reproduces the issue:
https://github.com/jscheel/storybook-cra-emotion-jsx-pragma
The repo provides a working and broken example. In the working example (
NormalExample
), the description column of the prop table is generated properly. In the broken example (EmotionExample
), the description column is blank.If I kill the create-react-app config (easiest way is to just
npm remove react-scripts
), everything works as expected in both examples.System:
Normal, Working Example:
Broken, Emotion Example:
The text was updated successfully, but these errors were encountered: