Flow issues with upgrading to flow-bin 0.38.0 (fbjs-scripts)
See original GitHub issueUsing the latest fbjs-scripts
(fbjs-scripts@0.7.1
) and flow-bin@0.38.0
, partitionObjectByKey.js.flow
throws the following Flow error:
/node_modules/fbjs/lib/partitionObjectByKey.js.flow:20
20: return partitionObject(source, (_, key) => whitelist.has(key));
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ tuple type. This type is incompatible with the expected return type of
19: function partitionObjectByKey(source: Object, whitelist: Set<string>): Array<Object> {
^^^^^^^^^^^^^ array type
Issue Analytics
- State:
- Created 7 years ago
- Reactions:21
- Comments:6 (2 by maintainers)
Top Results From Across the Web
Upgrading Flow Codebases - by Jordan Brown - Medium
Explain how we upgrade Flow in our giant internal monorepos at Facebook; Justify our upgrade process, which adds a lot of error suppressions;...
Read more >react-native/CHANGELOG.md - UNPKG
This version of Android Gradle plugin enforces JDK 11 for Android builds. Do not upgrade to AGP 7.1 as it is not supported...
Read more >How correctly update Flow? - Stack Overflow
yarn global ls shows "flow-bin@0.38.0". flow version shows Flow, a static type checker for JavaScript, version 0.37.4. How update flow to latest ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
As it seems this is still an issue in the current react release
15.4.2
. I just downgraded toflow-bin@0.37.4
to make it work again@Kadrian you just need to delete your old React installation. Clearing out
node_modules
entirely and re-installing your dependencies should alleviate the issue.