-
-
Notifications
You must be signed in to change notification settings - Fork 26.9k
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
Support type spread in flow-types #2140
Comments
Need someone to help investigate why. Maybe we need to update Babel version or something. |
We should probably upgrade all development tooling packages before the 0.10 release. |
Yea. |
Has anyone tracked this down? I've tried upgrading all dependencies related to babel, flow and eslint, but I'm still getting this error when I use spread in type objects. |
I don't know what's going on babel/babel-eslint#443 |
For now we can use intersection types:
although if Data has
then
|
I verified this no longer reproduces in 2.x alphas. You can try them: #3815. |
Flow supports the below syntax but babel (or one of the tools used by create-react-app) fails to compile the file. Giving this error:
Module build failed: TypeError: Cannot read property 'typeAnnotation' of undefined
The text was updated successfully, but these errors were encountered: