-
-
Notifications
You must be signed in to change notification settings - Fork 209
v10.0.0: TypeError: statements is not iterable #691
Comments
Same to me!!!!
|
Any chance of getting a small reproduce-able example? |
Yeah seeing that error, especially if it's just from ESLint itself, will require a lot of guessing to know what the issue is now. |
I'll try to find some time tomorrow to come up with a reduced repro. |
It's not exactly "reduced", but I got this issue in this PR: smokku/wrte#140 |
Awesome thanks @smokku looks like it's a bug from #584 cc @joa so that transformation has some issues? It's probably an issue because the change doesn't modify the location data correctly, otherwise we should strip it out or remove it.
Sounds like we shouldn't transform it and instead we should add it in scope like in analyze-scope. Actually I guess we seem to be handling something like that already in babel-eslint/lib/analyze-scope.js Lines 148 to 158 in 8f78e28
|
I have this issue as well, I'm using babel-eslint + flow and it only occurs form me when I do something like BTW this appends in this file: |
eslint: v5.6.0
node: v10.11.0
just updated
babel-eslint v9.0
tov10.0
, and got the following after runningeslint
:I haven't found time yet to look into the issue more closely, but thought I'd go ahead and report it nonetheless already.
The text was updated successfully, but these errors were encountered: