-
-
Notifications
You must be signed in to change notification settings - Fork 239
Flow type spread appears unsupported as of 6.25.0 #488
Comments
This might be due to earlier dependencies in your transitive dependency tree. What is your output of If you can't get your dependencies updated, you can force up these with |
Sounds like a duplicate of this: #485 |
Aye I did see that one, but the error being reported is different. I wasn't 100% sure if it was the same root cause. Happy to close this one if so. |
The problem is with the scope analysis tool. We currently monkey patch it to handle type definitions but it needs to be updated to handle spread. |
Edit: Sorry, this is probably a bug in eslint-plugin-flowtype. (gajus/eslint-plugin-flowtype#207) I also get an error, although it's a different one. I'm using babel-core@6.25 and babel-eslint@7.2.3. Is this just an error in type Props = {
foo: string
}
type OtherProps = {
...Props
} output of eslint
I tried opening this in chrome dev tools and I see that there is indeed no |
Just FYI babel-core is unrelated to eslint/babel-eslint. The only thing babel-eslint uses is the parser (babylon) and some utils like babel-types. And yes it probably doesn't handle it given the rule that is erroring is no-undef/no-use-before-define |
The issue seems to be because of missing Issue could be reproduced in ASP Explorer using babel-eslint-7.2.3, i.e. there is no Using babylon7-7.0.0-beta.12 with
|
Clsoing for inactivity, I believe updating the package version should work |
@hzoo I'm using the latest version of babel-eslint (8.0.2) and still get the same error from |
fixed the issue for me |
Given the following code:
And running eslint@3.19.0 with babel-core@6.25.0 yields the following error:
Note that disabling the
no-use-before-define
rule does fix the problem, but it suggests that there's still something underlying that is unsupported.The text was updated successfully, but these errors were encountered: