-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Error in the new version of flow 0.55 #1308
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
Comments
@leebyron Oops, sorry I didn't upstream a fix for this, but internally I resolved this in D5708450. On that diff, I wrote: The Immutable API for sets has a fatal flaw, because Set is defined to be a We previously ran into this exact issue with
We fixed this by removing the declaration of This issue follows the same pattern. If
The fix takes the same form as well: remove the declaration. Since it's an |
@samwgoldman |
@szagi3891 I don't think so. The fix is a single line: just remove the definition of |
Hey @samwgoldman, just wanted to make sure I understood your suggestion ☝️ We're using Should we submit a PR / run with a fork / hang tight for a while? |
@tanem Right. It seems we have a local copy of the type definitions, so the change I made isn't going to sync out (we should keep these in sync, but alas). I'm lazy, so I probably won't submit a PR, but feel free to use my explanation above. You're right on about removing that one line. It's a breaking change, but I'm not sure how this project deals with that. |
Same here. So the solution is to remove the line? |
Any chance you can publish this as a third party definition in https://github.com/flowtype/flow-typed? I think this would make it a lot easier to work on flow types collaboratively (i.e for #1223). |
What if you automatically pull in type definitions from |
Agreeing with @philipp-spiess here. Simply commenting out a line in node_modules seems like a pretty nasty work around, since every dev on the team will need to do this every time they download the project. Porting these flow types over to |
I agree with @philipp-spiess and @duro, it would be good to either port these types to |
I've forked and pushed a branch to remove this line. Feel free to use my fork to get rid of the flow errors. If you're using yarn:
Or add this line to your
|
* Remove of<T> for Seq Per #1308 (comment) * Remove of<T> for Seq
I think removing |
This function causes type safety issues as Seq is a baseclass and superclass methods also include .of(). `Seq.of(a, b)` can always be safely replaced with `Seq.Indexed.of(a, b)` or `Seq([a, b])`. Fixes #1308
This function causes type safety issues as Seq is a baseclass and superclass methods also include .of(). `Seq.of(a, b)` can always be safely replaced with `Seq.Indexed.of(a, b)` or `Seq([a, b])`. Fixes #1308
@leebyron Will this be released in a 3.x release too? |
@williamboman Since it's merged with |
This is released in the latest rc |
@williamboman unfortunately this is a breaking change, so incompatible with a patch release atop the 3.x releases |
OK I could work around this issue without having to update to |
@fabiomcosta Thanks, that solved my problem! |
Found solution at immutable-js/immutable-js#1308 (comment) Hopefully immutable.js 4.x fixes this
Library in version : immutable@4.0.0-rc.2
To get this error just run flow:
The text was updated successfully, but these errors were encountered: