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
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:
Error ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ flow-typed/npm/styled-components_v5.x.x.js:416:39
Missing type annotation for V. V is a type parameter declared in function type [1] and was implicitly instantiated at
$ObjMap [2].
413│ ElementName
414│ >;
415│
[2] 416│ declare type ConvenientShorthands = $ObjMap<
417│ BuiltinElementInstances,
[1] 418│ <V>(V) => StyledShorthandFactory<V>
419│ >;
420│
421│ declare interface Styled {
422│ <Comp: React$ComponentType<P>, Theme, OwnProps = React$ElementConfig<Comp>>(
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:
I'm upgrading from an old flow version (v0.79.1), it took me a while to figure out what was going on. Found out this is causing me issues:
// $FlowFixMe[missing-annot] Upgrade Flow to v0.129.0.exportconstMyDiv=styled.div``;
It correctly suppresses the error in the file but bubbles it up to the styled-components libdef. This doesn't seem like a libdef issue, but rather a flow issue.
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: