-
-
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
PropTypes are missing in info panel in static build #1661
Comments
I think I know what's happening here. On prod, PropTypes get stripped out because it's not necessary in the traditional prod environment sense. Also, the |
Am also facing this issue with static builds of Versions: |
There's really no workaround unfortunately. I don't think you can use a custom I'll fix it when I get a chance. |
A custom |
@DanielJRutledge unfortunately, yes. I think I'm gonna add it into the prod babel config for now and refactor the function that takes the custom babelrc later. |
Think this issue has been fixed when we refactored the server code to the core package. |
Couldn't find this issue anywhere so I am reporting it here.
It seems that when using the info-addon, the proptypes to a components works when you run storybook locally, but all proptypes are defaulted to type
node
in a static build of storybook.The required field is also reset to
no
in a static build. Default seems to work though.Here is a picture of it running locally
And here is how it looks once it's built static
Versions are
@storybook/react
v3.2.4@storybook/addon-info
v3.2.4The text was updated successfully, but these errors were encountered: