Flow: `$FlowIssue`. Could not resolve name

Created on 5 Jun 2016  路  2Comments  路  Source: facebook/flow

$ flow version
Flow, a static type checker for JavaScript, version 0.22.1

$ flow
node_modules/fbjs/lib/shallowEqual.js.flow:29
 29:     return x !== 0 || 1 / (x: $FlowIssue) === 1 / (y: $FlowIssue);
                                   ^^^^^^^^^^ identifier `$FlowIssue`. Could not resolve name


Found 1 error

Most helpful comment

Ack! This is happening because Flow is pulling in the fbjs type definitions, which is cool, but fbjs apparently depends on a configuration that is now required in your own project. If you add suppress_type=$FlowIssue to the [options] section of your .flowconfig the error will go away.

Going to leave this open, because we need to fix the root cause of this issue once and for all. 3rd party library dependencies shouldn't introduce errors in your project like this.

All 2 comments

Ack! This is happening because Flow is pulling in the fbjs type definitions, which is cool, but fbjs apparently depends on a configuration that is now required in your own project. If you add suppress_type=$FlowIssue to the [options] section of your .flowconfig the error will go away.

Going to leave this open, because we need to fix the root cause of this issue once and for all. 3rd party library dependencies shouldn't introduce errors in your project like this.

Closing since this issue has been resolved. Thanks for reporting! 馃槉

Was this page helpful?
0 / 5 - 0 ratings