I am using the react-styleguidist package, which makes use of react-docgen. When I want to build my styleguide, I get the following error:
Warning: Cannot parse src/Sulu/Bundle/AdminBundle/Resources/js/components/Checkbox/Checkbox.js: Error: did not recognize object of type "ObjectTypeSpreadProperty"
I am using flow for static type checks in this project, and I assume the error is because of type definitions using the spread operator, in this specific case:
typeProps={|
...SwitchProps,className?: string,onChange?: (checked: boolean,value?: string|number)=>void,skin: 'dark'|'light',|};Is there a reason this is not supported, or is this an error?
I am using the
react-styleguidistpackage, which makes use ofreact-docgen. When I want to build my styleguide, I get the following error:I am using flow for static type checks in this project, and I assume the error is because of type definitions using the spread operator, in this specific case:
Is there a reason this is not supported, or is this an error?