-
Notifications
You must be signed in to change notification settings - Fork 24.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Errors in flow #18133
Comments
I just encountered this and realized it was because installed latest flow-bin (0.66.0), then updated the Not a "fix", but since RN scaffolded the .flowconfig version, I'm personally okay letting RN dictate the flow version. (and I assume a future RN version will 1) uptick flow and 2) fix these few type errors) |
We run Flow as part of our CI, and it's currently not raising any of these issues, at least not on master. See the Flow step at https://circleci.com/gh/facebook/react-native/35835 |
I'm seeing the issue with renderItemType when using a SectionList RN 0.51 with flow 0.66 (obviously a different version of flow than what ships with RN 0.51) possibly related: react-native/Libraries/Lists/VirtualizedList.js Lines 54 to 58 in da3424c
|
FWIW, Flow checks did not fail in the most recent CI run for the |
Flow checks are not failing in |
I get the same errors on RN 0.54, but they're fixed in master. Can the changes get backported to 54 so we don't have to wait a month for fixes in 55? |
I'm afraid not. FWIW, 0.54-stable does not show this issue: https://circleci.com/gh/facebook/react-native/tree/0.54-stable |
@FLGMwt switching back to Flow 0.63.0 worked for me also. So a mix of RN 0.53.3 and 0.63.0 works. Haven't tested newer versions. |
@hramos The issue is closed, but is it |
@rumax if you use older RN, use older Flow. But I don't think this mapping is documented. :/ |
I was also getting this issue when upgrading to RN 0.55.3 using flow version 0.67.1. I solved the problem by actually copying there flow suppressing comments within there
assuming you have those suppress types (
Hope that helps! |
because they |
Is this a bug report?
Yes
Have you read the Contributing Guidelines?
Yes, kind of.
Environment
Environment:
OS: Windows 10
Node: 8.9.4
Yarn: Not Found
npm: 5.5.1
Watchman: Not Found
Xcode: N/A
Android Studio: Not Found
Packages: (wanted => installed)
react: 16.2.0 => 16.2.0
react-native: 0.53.3 => 0.53.3
Steps to Reproduce
Create a new project create-react-native-app. Update react-native to 0.53.3 in package json. Add flow-bin 0.66.0. Clear node_modules. Clear npm cache. Do npm install. Add & run npm run flow.
Expected Behavior
Errors from my code, and 3rd party libraries.
Actual Behavior
Errors all over the place from react-native, metro. etc.
The text was updated successfully, but these errors were encountered: