Skip to content
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

Same error can appear multiple times #6084

Closed
iddan opened this issue Apr 3, 2018 · 3 comments
Closed

Same error can appear multiple times #6084

iddan opened this issue Apr 3, 2018 · 3 comments

Comments

@iddan
Copy link

iddan commented Apr 3, 2018

Union type makes this to happen:

 • Either inexact props [1] is incompatible with exact Props [2].
 • Or inexact props [1] is incompatible with exact Props [2].
 • Or inexact props [1] is incompatible with exact Props [2].
 • Or inexact props [1] is incompatible with exact Props [2].
 • Or inexact props [1] is incompatible with exact Props [2].
 • Or inexact props [1] is incompatible with exact Props [2].
 • Or inexact props [1] is incompatible with exact Props [2].
 • Or inexact props [1] is incompatible with exact Props [2].
 • Or inexact props [1] is incompatible with exact Props [2].
 • Or inexact props [1] is incompatible with exact Props [2].
 • Or inexact props [1] is incompatible with exact Props [2].
 • Or inexact props [1] is incompatible with exact Props [2].
 • Or inexact props [1] is incompatible with exact Props [2].
 • Or inexact props [1] is incompatible with exact Props [2].
 • Or inexact props [1] is incompatible with exact Props [2].
 • Or inexact props [1] is incompatible with exact Props [2].
 • Or inexact props [1] is incompatible with exact Props [2].
 • Or inexact props [1] is incompatible with exact Props [2].
 • Or inexact props [1] is incompatible with exact Props [2].
 • Or inexact props [1] is incompatible with exact Props [2].
 • Or inexact props [1] is incompatible with exact Props [2].
 • Or inexact props [1] is incompatible with exact Props [2].
 • Or inexact props [1] is incompatible with exact Props [2].
 • Or inexact props [1] is incompatible with exact Props [2].
@cprodescu
Copy link

cprodescu commented Apr 3, 2018

Thank you for reporting! Can you add a minimal example using flow.org/try/

My blind guess is that you're passing an object spread {...props} to a React component that uses an exact type as Props. That is a known issue, likely related to #2405

@iddan
Copy link
Author

iddan commented Apr 3, 2018

Exactly that, but the props contain a spread of union of exact object types

@SamChou19815
Copy link
Contributor

We now limit the size of the union type errors

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants