flow-runtime icon indicating copy to clipboard operation
flow-runtime copied to clipboard

React types are undefined

Open eunikitin opened this issue 7 years ago • 2 comments

I started to get this message to console: "flow-runtime: Could not reference the given type, try t.typeOf(value) instead. (got undefined)".

1

After some search i found out the reason - React.Node is undefined, same for other types described in flow docs.

2

Am I do something wrong?

eunikitin avatar Mar 02 '18 17:03 eunikitin

Same for me :smile_cat:

FDiskas avatar Sep 10 '18 18:09 FDiskas

I switched to https://www.npmjs.com/package/babel-plugin-flow-react-proptypes and it works :sake:

FDiskas avatar Sep 10 '18 18:09 FDiskas