Flow version: 0.132.0 and above
Expected behavior
Now flow error
Actual behavior
Flow emits an error when I use a React type that has been imported in a flow-typed module.
Github repo: https://github.com/debel27/flow-issue_value-as-type
To reproduce : clone the project, run yarn, then run yarn run flow
The emitted error is the following
Error ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ src/index.js:4:13
Cannot use Node as a type because it is an any-typed value. Type Node properly, so it is no longer any-typed, to use it
as an annotation. [value-as-type]
1│ // @flow
2│ import * as React from 'react';
3│
4│ const node: React.Node = <div>Hello world</div>;
5│