-
-
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
RDTL: "No props found for this component" when using const export #10271
Comments
The crucial part is that using this syntax works:
|
Related issues I could find but don't appear to be exact duplicates:
The only relevant suggestion is this: But it looks like this is available since sb 6.0. Should I still be using |
@Vanuan the 6.0 setup should also work in 5.3. But it's a breaking change, which is the primary reason I haven't called it a 5.3 change. Can you try that? |
@shilman I tried that and it doesn't work at all. It looks like it's documented to not work, so I created a PR to clarify that it only works with RDTL: #10276 Could you tell what's the relationship between It looks like Why do you recommend using Facebook's version if typescript support is incomplete there? Or doesn't work at all practically for projects which provision types in a separate file. What's the state of RDTL support in Storybook? Should I post bugs to another repository? |
AFAIK Here's the rationale for the move:
As for how this all relates to Storybook, frankly I'm still figuring it all out. Even though SB Docs is relatively new, it already has more users than both Styleguidist and Docz combined (according to NPM downloads). I'm hoping with everybody standardizing on Please feel free to keep filing issues here. Since Storybook is the primary interface to both of these tools for a lot of people, I hope we can figure out a structured way to track the issues in SB, and also make sure they get filed into the respective tools so that the maintainers of RTDL and react-docgen can fix them in their own ways and at their own pace. In the meantime, I'll try to support both options since neither of them is satisfactory yet, IMHO. |
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! |
However, I'm considering adding it back in 6.0. cc @patricklafrance |
Hello @shilman , thanks for your response. |
@danielo515 docgen typically either works or doesn't work. if it works, it does stuff like includes jsdoc comments, processes tags out of those jsdoc comments like if the runtime type information is parsed as a fallback, you get whatever limited information is included in the runtime information, which is much less than what's in docgen, e.g. it won't contain the docgen descriptions. so we'd get support issues like "why are my props showing up but none of the descriptions?". so @patricklafrance deleted that runtime type information to simplify things and also make it clearer when docgen is working or not. i hope that answers your question. as for flow types, they are supported by react-docgen. they should work in storybook as well, but they are not officially supported by storybook. meaning that flow-related questions/bugs will get lowest priority from me. however, we have tens of thousands of users--some of whom use flow--so hopefully you can get support from the community if you go that route. |
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! |
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! |
Describe the bug
When the component module exports a component as a constant, I see this message:
"No props found for this component"
To Reproduce
Expected behavior
I expect to see a property table.
Screenshots
Code snippets
System
storybook/react "5.3.17"
react-docgen-typescript-loader "3.7.2"
Additional context
Maybe it's a react-docgen issue.
The text was updated successfully, but these errors were encountered: