fbjs: Flow errors
Im getting a bunch of flowtype error, is it normal ??
/Path/to/my/project/node_modules/react/node_modules/fbjs/flow/include/Deferred.js:14:15,32: Promise
Required module not found
/Path/to/my/project/node_modules/react/node_modules/fbjs/flow/include/Deferred.js:39:15,15: return
Missing annotation
/Path/to/my/project/node_modules/react/node_modules/fbjs/flow/include/PromiseMap.js:15:16,34: Deferred
Required module not found
/Path/to/my/project/node_modules/react/node_modules/fbjs/flow/include/PromiseMap.js:17:17,36: invariant
Required module not found
/Path/to/my/project/node_modules/react/node_modules/fbjs/flow/include/PromiseMap.js:19:31,39: Promise
Required module not found
/Path/to/my/project/node_modules/react/node_modules/fbjs/flow/include/fetchWithRetries.js:16:28,58: ExecutionEnvironment
Required module not found
/Path/to/my/project/node_modules/react/node_modules/fbjs/flow/include/fetchWithRetries.js:17:15,32: Promise
Required module not found
/Path/to/my/project/node_modules/react/node_modules/fbjs/flow/include/fetchWithRetries.js:19:15,32: sprintf
Required module not found
/Path/to/my/project/node_modules/react/node_modules/fbjs/flow/include/fetchWithRetries.js:20:13,28: fetch
Required module not found
/Path/to/my/project/node_modules/react/node_modules/fbjs/flow/include/fetchWithRetries.js:21:15,32: warning
Required module not found
/Path/to/my/project/node_modules/react/node_modules/fbjs/flow/include/resolveImmediate.js:13:15,32: Promise
Required module not found
About this issue
- Original URL
- State: closed
- Created 9 years ago
- Comments: 20 (13 by maintainers)
Commits related to this issue
- Upgrade to React 0.14.0 - update package.json - React.findDOMNode » ReactDOM.findDOMNode - React.addons.createFragment » react-addons-create-fragment - update `.flowconfig` (see facebook/fbjs#44) — committed to kassens/react-devtools by kassens 9 years ago
- Upgrade to React 0.14.0 - update package.json - React.findDOMNode » ReactDOM.findDOMNode - React.addons.createFragment » react-addons-create-fragment - update `.flowconfig` (see facebook/fbjs#44) — committed to kassens/react-devtools by kassens 9 years ago
- Upgrade to React 0.14.0 - update package.json - React.findDOMNode » ReactDOM.findDOMNode - React.addons.createFragment » react-addons-create-fragment - update `.flowconfig` (see facebook/fbjs#44) — committed to kassens/react-devtools by kassens 9 years ago
- Upgrade to React 0.14.2 - update package.json - React.findDOMNode » ReactDOM.findDOMNode - React.addons.createFragment » react-addons-create-fragment - update `.flowconfig` (see facebook/fbjs#44) — committed to kassens/react-devtools by kassens 9 years ago
I use
fbjs@0.6.1andnpm@3.5.2, but it has the same errors:Ignoring works, but I have to agree with @runn1ng that this isn’t the best way…
I got mine working like so, making sure to import the Promise lib first: