maranran / eslint-plugin-vue-a11y

Static AST checker for accessibility rules on elements in .vue
MIT License
161 stars 21 forks source link

TypeError: cannot read property 'name' of null (interactive-supports-focus) #16

Closed travis-r6s closed 5 years ago

travis-r6s commented 5 years ago

Similar to #14, I get the below when using v30, but not v28:

[Error - 21:21:31] TypeError: Cannot read property 'name' of null
Occurred while linting /media/***/manage/pages/products/create.vue:81
    at node.startTag.attributes.find.a (/media/***/manage/node_modules/eslint-plugin-vue-a11y/lib/utils/index.js:66:51)
    at Array.find (<anonymous>)
    at Object.getDirective (/media/***/manage/node_modules/eslint-plugin-vue-a11y/lib/utils/index.js:62:37)
    at Object.getAttribute (/media/***/manage/node_modules/eslint-plugin-vue-a11y/lib/utils/index.js:58:51)
    at EventEmitter.VElement (/media/***/manage/node_modules/eslint-plugin-vue-a11y/lib/rules/interactive-supports-focus.js:36:35)
    at EventEmitter.emit (events.js:187:15)
    at NodeEventGenerator.applySelector (/media/***/manage/node_modules/eslint-plugin-vue-a11y/node_modules/vue-eslint-parser/index.js:3273:26)
    at NodeEventGenerator.applySelectors (/media/***/manage/node_modules/eslint-plugin-vue-a11y/node_modules/vue-eslint-parser/index.js:3287:22)
    at NodeEventGenerator.enterNode (/media/***/manage/node_modules/eslint-plugin-vue-a11y/node_modules/vue-eslint-parser/index.js:3295:14)
    at traverse (/media/***/manage/node_modules/eslint-plugin-vue-a11y/node_modules/vue-eslint-parser/index.js:113:13)

It seems to be interactive-supports-focus this time...

maranran commented 5 years ago

fixed it in next version, thanks for your issue @thetre97