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
The issue was fixed in 6.0.0-beta.3 but got broken with the next beta release 6.0.0-beta.4
I've used git bisect and identified that this got broken in fe4ad7b
Edit: playing around with the PolymorphicComponentProps type I found that this is caused by using Omit (in this case FastOmit) and it is a documented issue in the docgen library styleguidist/react-docgen-typescript#335
I don't think there's anything to be done on the part of styled-components.
Reopening already reported and fixed issue #3813
The issue was fixed in
6.0.0-beta.3
but got broken with the next beta release6.0.0-beta.4
I've used
git bisect
and identified that this got broken in fe4ad7bEdit: playing around with the PolymorphicComponentProps type I found that this is caused by using Omit (in this case FastOmit) and it is a documented issue in the docgen library styleguidist/react-docgen-typescript#335
I don't think there's anything to be done on the part of styled-components.
Environment
System:
Binaries:
npmPackages:
Reproduction
I have written a basic failing test in #4218
Alternatively here's a codesandbox
https://codesandbox.io/p/github/macko911/react-docgen-typescript-styled-components-6/main
Steps to reproduce
Run
npm run docgen
to log the generated props.Expected Behavior
Actual Behavior
The text was updated successfully, but these errors were encountered: