Yelp / lemon-reset

Consistent, cross-browser React DOM tags, powered by CSS Modules. 🍋
MIT License
131 stars 13 forks source link

typecheck fails with latest version of flow #72

Closed mxmul closed 5 years ago

mxmul commented 5 years ago

Bumping flow-bin to latest results in a bunch of type errors:

$ yarn typecheck
yarn run v1.12.1
$ flow check
[2019-01-09 11:20:03.873] Failed to load recheck stats from "/tmp/flow/zSnailzShomezSmmulderzSpgzSlemon-reset.recheck_stats". Reason: "File doesn't exist"
Error ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ dist/lemon-reset.js.flow:102:39

Cannot create Tag element because:
 • in property ref:
    • Either HTMLAnchorElement [1] is incompatible with HTMLAudioElement [2] in property current.
    • Or a callable signature is missing in object type [3] but exists in function type [4].
 • in property ref:
    • Either HTMLAnchorElement [1] is incompatible with HTMLCanvasElement [5] in property current.
    • Or a callable signature is missing in object type [3] but exists in function type [4].
 • in property ref:
    • Either HTMLAnchorElement [1] is incompatible with HTMLTableCaptionElement [6] in property current.
    • Or a callable signature is missing in object type [3] but exists in function type [4].
 • in property ref:
    • Either HTMLAnchorElement [1] is incompatible with HTMLDetailsElement [7] in property current.
    • Or a callable signature is missing in object type [3] but exists in function type [4].
 • in property ref:
    • Either HTMLAnchorElement [1] is incompatible with HTMLDivElement [8] in property current.
    • Or a callable signature is missing in object type [3] but exists in function type [4].
 • in property ref:
    • Either HTMLAnchorElement [1] is incompatible with HTMLDListElement [9] in property current.
    • Or a callable signature is missing in object type [3] but exists in function type [4].
 • in property ref:
    • Either HTMLAnchorElement [1] is incompatible with HTMLFieldSetElement [10] in property current.
    • Or a callable signature is missing in object type [3] but exists in function type [4].
 • in property ref:
    • Either HTMLAnchorElement [1] is incompatible with HTMLFormElement [11] in property current.
    • Or a callable signature is missing in object type [3] but exists in function type [4].