You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using Storybook 5.2.6 - 5.3.0-beta.3 with TypeScript the @storybook/addons-docs doesn't show the PropsTable for any component wrapped in a Hoc, for example Material-UI withStyles.
It shows a No props found for this component message when using 5.3.0-beta(2|3) and Cannot read property 'classes' of undefined when using 5.2.6.
To Reproduce
Using Storybook 5.2.6 - 5.3.0-beta.3 with TypeScript 3.5.3 and React 16.9.0 installing the @storybooks/addons-docs.
Create a component in TypeScript using Material-UI withStyles HoC.
Add a component story with addParameters for the component
Expected behavior
The docs for the component story should display the PropsTable showing props for message, classes and testId.
Instead it shows a No props found for this component message
Describe the bug
Using Storybook 5.2.6 - 5.3.0-beta.3 with TypeScript the @storybook/addons-docs doesn't show the PropsTable for any component wrapped in a Hoc, for example Material-UI withStyles.
It shows a No props found for this component message when using 5.3.0-beta(2|3) and Cannot read property 'classes' of undefined when using 5.2.6.
To Reproduce
Expected behavior
The docs for the component story should display the PropsTable showing props for message, classes and testId.
Instead it shows a No props found for this component message
Code snippets
Source for component:
Source for story:
System:
Please paste the results of
npx -p @storybook/cli@next sb info
here.Environment Info:
System:
OS: macOS Mojave 10.14
CPU: (8) x64 Intel(R) Core(TM) i7-8559U CPU @ 2.70GHz
Binaries:
Node: 10.14.1 - ~/.nvm/versions/node/v10.14.1/bin/node
Yarn: 1.12.3 - /usr/local/bin/yarn
npm: 6.4.1 - ~/.nvm/versions/node/v10.14.1/bin/npm
Browsers:
Chrome: 78.0.3904.97
Firefox: 66.0.3
Safari: 12.0
npmPackages:
@storybook/addon-actions: 5.3.0-beta.3 => 5.3.0-beta.3
@storybook/addon-docs: 5.3.0-beta.3 => 5.3.0-beta.3
@storybook/addon-links: 5.3.0-beta.3 => 5.3.0-beta.3
@storybook/addons: 5.3.0-beta.3 => 5.3.0-beta.3
@storybook/preset-typescript: ^1.1.0 => 1.1.0
@storybook/react: 5.3.0-beta.3 => 5.3.0-beta.3
Additional context
If the component is not wrapped in the HoC the Docs props table displays as it should
The text was updated successfully, but these errors were encountered: