question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Flow issues with upgrading to flow-bin 0.38.0 (fbjs-scripts)

See original GitHub issue

Using 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:closed
  • Created 7 years ago
  • Reactions:21
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
Kadriancommented, Feb 20, 2017

As it seems this is still an issue in the current react release 15.4.2. I just downgraded to flow-bin@0.37.4 to make it work again

0reactions
rsolomoncommented, Feb 21, 2017

@Kadrian you just need to delete your old React installation. Clearing out node_modules entirely and re-installing your dependencies should alleviate the issue.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found