Skip to content
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

On addon-docs DocsPage, PropType.shape renders as unknown #9399

Closed
ghost opened this issue Jan 12, 2020 · 3 comments
Closed

On addon-docs DocsPage, PropType.shape renders as unknown #9399

ghost opened this issue Jan 12, 2020 · 3 comments

Comments

@ghost
Copy link

ghost commented Jan 12, 2020

I have a component with the following proptypes:

Credits.propTypes = {
  areas: PropTypes.arrayOf(
    PropTypes.shape({
      position: PropTypes.string.isRequired,
      names: PropTypes.arrayOf(PropTypes.string).isRequired,
    }),
  ).isRequired,
};

But on the DocsPage I am getting unknown[] instead of the shape definition inside the array:

Screen Shot 2020-01-12 at 19 09 20

@ghost ghost changed the title On addon-docs DocsPage, PropType.shape renders as unknown On addon-docs DocsPage, PropType.shape renders as unknown Jan 12, 2020
@shilman shilman added this to the 5.3.x milestone Jan 13, 2020
@stale
Copy link

stale bot commented Feb 3, 2020

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!

@stale stale bot added the inactive label Feb 3, 2020
shilman added a commit that referenced this issue Feb 14, 2020
@shilman
Copy link
Member

shilman commented Feb 14, 2020

Reproduced here: 8063b52

@stale stale bot removed the inactive label Feb 14, 2020
@shilman shilman removed this from the 5.3.x milestone Jul 30, 2020
@vanessayuenn
Copy link
Contributor

Hi! I am going through and cleaning up old issues in the repo. We just shipped a ton of improvements in Storybook 7.0, and I suspect this bug might be fixed already. Can you please try it out? If this issue persists with the latest version, please open a new bug report with a 7.x reproduction. Thank you so much! 🙏🏼

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants