We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Tell us about your environment
What did you do?
<template> <component :is=""></component> </template>
What did you expect to happen? eslint should not crash
What actually happened?
TypeError: Cannot read property 'type' of null at EventEmitter.VAttribute[directive=true][key.name='bind'][key.argument='is']
node.value.expression may be null/undefined
node.value.expression
The text was updated successfully, but these errors were encountered:
solution:
https://github.com/vuejs/eslint-plugin-vue/blob/master/lib/rules/no-unused-components.js#L59
- if (node.value.type !== 'VExpressionContainer') return + if (node.value.type !== 'VExpressionContainer' || !node.value.expression) return
Sorry, something went wrong.
fix(no-unused-components): crash when :is in <component> is empty
:is
<component>
45643b7
Fixed #789
fix(no-unused-components): crash when :is in <component> is empty (…
58d4a68
…#793) Fixed #789
No branches or pull requests
Tell us about your environment
What did you do?
What did you expect to happen?
eslint should not crash
What actually happened?
node.value.expression
may be null/undefinedThe text was updated successfully, but these errors were encountered: