-
-
Notifications
You must be signed in to change notification settings - Fork 32
Cannot read property 'filter' of undefined #100
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
Can you provide a minimal test case with the contents of that file? |
I got the same in . I didn't have the time yet to strip it down to a minimal test case, but maybe this is of help: The error happens in (list)
{ flowVersion: '0.56.0',
exit:
{ code: 110,
reason: 'Unknown_error',
msg: 'Unhandled exception: End_of_file' } } so Versions are: Flow finishes with no errors at all. What might cause this? |
Thanks! I will update my PR so that we show an error instead of ignoring. |
Was this resolved? |
In my case eslint seemed to be working correctly, but using this plugin broke prettier formatting and got the same error message. Not sure if this helps with debugging the error... |
We no longer use |
Using versions: - "eslint-plugin-flowtype": "2.37.0",
"eslint-plugin-flowtype-errors": "3.3.2",
Getting the following errors, when I run lint:-
yarn lint v0.27.5
$ eslint ./app//.js
Cannot read property 'filter' of undefined
TypeError: Cannot read property 'filter' of undefined
at collect (/Users/stefanwalker/Projects/Influence/Frontend2/node_modules/eslint-plugin-flowtype-errors/dist/collect.js:178:3)
at Program (/Users/stefanwalker/Projects/Influence/Frontend2/node_modules/eslint-plugin-flowtype-errors/dist/index.js:94:48)
The text was updated successfully, but these errors were encountered: