You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a project where I've been using xo@0.15.0, and everything worked fine. Then, I upgraded to xo@0.16.0, and suddenly just running xo doesn't work anymore. I get the following output:
> node-autostart@3.0.1 test /Users/maxr/node-autostart
> xo && nyc mocha
TypeError: Cannot read property 'type' of undefined
at getScopeBody (/Users/maxr/node-autostart/node_modules/eslint-plugin-import/lib/rules/newline-after-import.js:30:11)
at /Users/maxr/node-autostart/node_modules/eslint-plugin-import/lib/rules/newline-after-import.js:104:27
at Array.forEach (native)
at /Users/maxr/node-autostart/node_modules/eslint-plugin-import/lib/rules/newline-after-import.js:103:22
at Array.forEach (native)
at EventEmitter.ProgramExit (/Users/maxr/node-autostart/node_modules/eslint-plugin-import/lib/rules/newline-after-import.js:99:14)
at emitOne (events.js:101:20)
at EventEmitter.emit (events.js:188:7)
at NodeEventGenerator.leaveNode (/Users/maxr/node-autostart/node_modules/eslint/lib/util/node-event-generator.js:49:22)
at CodePathAnalyzer.leaveNode (/Users/maxr/node-autostart/node_modules/eslint/lib/code-path-analysis/code-path-analyzer.js:627:23)
at CommentEventGenerator.leaveNode (/Users/maxr/node-autostart/node_modules/eslint/lib/util/comment-event-generator.js:110:23)
at Controller.traverser.traverse.leave (/Users/maxr/node-autostart/node_modules/eslint/lib/eslint.js:908:36)
npm ERR! Test failed. See above for more details.
It looks like the importing of an ESLint plugin is now failing.
If I downgrade to xo@0.15.0, everything works, but when I upgrade again it crashes again.
The PR that involves this upgrade can be found here, and the repo here.
Thanks!
The text was updated successfully, but these errors were encountered:
I have a project where I've been using xo@0.15.0, and everything worked fine. Then, I upgraded to xo@0.16.0, and suddenly just running xo doesn't work anymore. I get the following output:
It looks like the importing of an ESLint plugin is now failing.
My config, if important:
If I downgrade to xo@0.15.0, everything works, but when I upgrade again it crashes again.
The PR that involves this upgrade can be found here, and the repo here.
Thanks!
The text was updated successfully, but these errors were encountered: