-
Notifications
You must be signed in to change notification settings - Fork 29
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
TypeError: Cannot read property 'length' of undefined #130
Comments
Looks like messages is undefined for the first file instead of being an empty array:
And it breaks here: https://github.com/rizowski/eslint-watch/blob/master/src/formatters/simple-detail.js#L33 |
Looks like it only happens if --quiet flag is set, which makes me think that the issue is here: Lines 31 to 42 in ceeef55
|
The problem looks to be here: Line 35 in ceeef55
A simple fix is to replace the I'll open a PR with the fix |
@legraphista Nice attention to detail on this issue. Thanks for the PR. I'm a little busy at the moment but I will try to get this in before the end of the day. |
Environment
Basic Description of the problem
Start the watcher, shows error, fix & save the file, the process breaks.
How to reproduce it
node_modules/eslint/bin/eslint.js ./ --quiet
./node_modules/eslint-watch/bin/esw ./ -w --quiet
Debug output:
I've replaced sources, file path, and project paths
The text was updated successfully, but these errors were encountered: