-
-
Notifications
You must be signed in to change notification settings - Fork 5k
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
Flow issues with RN 0.46.1 #2215
Comments
I was able to reproduce this as well on RN 0.46.1 with |
Did you find any workaround to suppress these errors ? |
@Nhacsam You can add Doing this defeats the point of flow though, unless you recreate the modules in the library definition. But, ain't nobody got time for that. We'll just have to be patient and wait for the next release. |
@Palisand When I add
|
Can someone enlighten me why this library is publishing code to npm that is causing everyone's flow setup to report loads of weird errors from outside of their app code? Shouldn't they wait until it isn't broken to publish flow enabled code to npm? Or can/should this be solved in user |
Beta 12 is not yet published to npm. |
Still got this issue with RN 0.47.2 and flow 0.49.1.
|
I got real tired of seeing flow errors for third-party modules and the issues that come with [ignore]ing them... flow-result-checker by jbreckel Pick your poison. |
Unfortunately, Anyways, the aforementioned PR didn't get any attention from @skevy, who is apparently the only person who is trusted to accept PRs in this repo these days. As a result it languished and I ended up abandoning it. I would be willing to make a new PR (or set of PRs) getting this repo back to a healthy state vis-a-vis Flow, but I'd need some sort of assurance that my PR wouldn't just languish again. cc @matthamil, @satya164 Does anybody on the react-navigation team still care about Flow? |
At least a lot of users do. So I would like to see some smaller PRs based on #2094. Hopefully some of the new maintainers have time to review it. |
For those going the down I-don't-got-time-for-this route, this PR adds |
New PR: #2619 Let's hope this one gets reviewed :) |
The PR should be working, so if anybody wants to give it a try:
You'll likely see a bunch of new errors when you run Flow, which is probably a good sign! Make sure you remove |
The PR has been merged! You can get it by using the master version:
This issue can be closed as soon as a new version of the react-navigation NPM package is cut. |
@Ashoat Ok so I'll close this when 1.0.0-beta.12 is out on npm. Feel free to do the honors yourself though. |
1.0.0-beta.12 is already out: # npm view react-navigation
{ name: 'react-navigation',
description: 'React Navigation',
'dist-tags': { latest: '1.0.0-beta.11', next: '1.0.0-beta.12' },
versions:
[ '0.0.0',
'1.0.0-beta.1',
'1.0.0-beta.2',
'1.0.0-beta.3',
'1.0.0-beta.4',
'1.0.0-beta.5',
'1.0.0-beta.6',
'1.0.0-beta.7',
'1.0.0-beta.8',
'1.0.0-beta.9',
'1.0.0-beta.10',
'1.0.0-beta.11',
'1.0.0-beta.12' ],
maintainers:
[ 'ericvicenti <ericvicenti@gmail.com>',
'grabbou <grabbou@gmail.com>',
'satya164 <satyajit.happy@gmail.com>',
'skevy <adam@sk3vy.com>' ],
time:
{ modified: '2017-09-16T05:27:30.061Z',
created: '2016-04-05T21:37:35.098Z',
'0.0.0': '2016-04-05T21:37:35.098Z',
'1.0.0-beta.1': '2017-01-26T21:55:34.021Z',
'1.0.0-beta.2': '2017-02-08T21:18:21.926Z',
'1.0.0-beta.3': '2017-02-09T14:04:31.757Z',
'1.0.0-beta.4': '2017-02-16T02:57:50.843Z',
'1.0.0-beta.5': '2017-02-16T03:11:37.345Z',
'1.0.0-beta.6': '2017-02-28T02:40:02.600Z',
'1.0.0-beta.7': '2017-03-11T07:28:51.173Z',
'1.0.0-beta.8': '2017-04-20T03:33:08.245Z',
'1.0.0-beta.9': '2017-04-26T22:02:55.087Z',
'1.0.0-beta.10': '2017-05-19T16:06:36.732Z',
'1.0.0-beta.11': '2017-05-24T04:54:35.611Z',
'1.0.0-beta.12': '2017-07-19T20:13:22.710Z' }, It will ostensibly come with 1.0.0-beta.13. |
Thanks for working on the Flow definitions @Ashoat. When using master (with your changes) + Seems that only some type exports can be read from it. Where
|
It seems like the issue mentioned above might be solved when using |
I'm really not sure why those errors are occurring... it seems pretty clear that TypeDefinition.js has all of those exports. Based on your research I'm guessing the reason is that the code is using some new feature in Flow 0.44, but I'm not sure what that feature might be. |
This probably has to do with this, and the fact that I'm using RN 0.46.1 instead of 0.45.1 (from
package.json
).Current Behavior
Flow issues:
Expected Behavior
No flow issues.
Your Environment
The text was updated successfully, but these errors were encountered: