-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
styled-components v5: flow types themselves fail flow lint #3813
Comments
Hi @walkerdb! I'm aware of this issue, but I'm not sure how to fix it. I'm not even sure if it's a bug with the libdef or a bug in Flow. But, generally, it happens when people forget to call one of the shorthands, e.g: // Error
const C = styled.div vs // Fine
const C = styled.div`` Someone made a stripped down version of the libdef that reproduces the error and they've opened an issue Flow (facebook/flow#8344) |
I'm upgrading from an old flow version ( // $FlowFixMe[missing-annot] Upgrade Flow to v0.129.0.
export const MyDiv = styled.div``; It correctly suppresses the error in the file but bubbles it up to the |
Do you want to request a feature or report a bug?
Bug in styled-components v5 flow types.
What is the current behavior?
Latest styled-components flow types produce a flow error.
To reproduce, just install latest flow, pull down the latest
styled-components
flow types, and run flow.This error will result:
What is the expected behavior?
Flow type should be valid
Local Environment Information
Flow v. 0.123.0 (also reproduces on at least 0.122.0, haven't tried on others), latest
styled-components
v5 flow types.The text was updated successfully, but these errors were encountered: