Maybe this refers to this issues:
https://github.com/storybooks/storybook/issues/1141
I will duplicate my last comment here:
PropTypes still not worked for me in build mode. Here my component:
import React from "react";
import "./Background.css";
import PropTypes from "prop-types";
const Background = (props) => {
const {children} = props;
return (
<div className={"Background"}>
{children}
</div>
)
};
Background.displayName = "Background";
Background.propTypes = {
/** My content */
children: PropTypes.any.isRequired
};
export default Background;
For command NODE_ENV=production npm run storybook i have:

And for npm run storybook:

Same for the rest of the components too. But when i added:
Background.defaultProps = {
children: 'my text'
};
the following happens:

I use:
"@storybook/addon-info": "4.1.2",
"@storybook/addon-knobs": "4.1.2",
"@storybook/addon-options": "4.1.2",
"@storybook/cli": "4.1.2",
"@storybook/react": "4.1.2",
is amazing
Am I doing something wrong?
You know, we are using the Typescript and a plugin react-docgen-typescript-webpack-plugin to extract the interfaces into storybook/addon-info. The result prop table gets really into a mess if we describe children prop to be React.ReactChild.


Is it a real bug? Or we're doing it wrong too? :)
Also - if there are no doc comment line /** * */ then the property omits at all
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!
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!
and now, in version 5 it still not work!
Any update on this issue?
would really appreciate an update on this issue!
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!
continue the discussion
FYI, addon-docs is the successor to addon-info and is currently in beta. We'll still take community contributions on addon-info, but most effort will be put into making docs better. To learn more about addon-docs: https://docs.google.com/document/d/1un6YX7xDKEKl5-MVb-egnOYN8dynb5Hf7mq0hipk8JE/edit?usp=sharing
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!
FYI addon-info聽is being superceded by聽addon-docs, which fixes a bunch of bugs and is easier to maintain. It鈥檚 reached release candidate (RC) status and will be properly released soon. Please give it a try!聽https://medium.com/storybookjs/storybook-docspage-e185bc3622bf
I have the same issue, do you have any news?
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!
Any update on this issue?
I have switched to addon-docs instead and I kind of actually prefer it. In case you're looking for a quick setup of it using TypeScript and CSF, this might probably help you.
Most helpful comment
would really appreciate an update on this issue!