-
-
Notifications
You must be signed in to change notification settings - Fork 9.1k
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
Build ignores argTypes/PropTypes to create controls table #17310
Comments
Do you a have a reproduction repo you can share? If not, can you create one? See how to create a repro. Thank you! 🙏 |
I tried to use the command |
We are facing the same issue as well that the deployed storybook envrioment have less PropTypes and argTypes then the local deployed version. |
We are currently facing the same issue as described above. |
I wonder if you'll get the same result if you inline your import. This might be a react-docgen thing. Are your |
When creating a new component and its stories in Storybook, I can configure the controls table using PropTypes and argTypes and see it working as expected using the
yarn storybook
. However, when compiling the project withyarn build-storybook
the behavior is different, all the props imported from the component are displayed.In the image below, the
yarn storybook
behavior is on the left and theyarn build-storybook
behavior is on the right.The component and story file code is described below.
Button.tsx
Button.stories.tsx
The text was updated successfully, but these errors were encountered: