Skip to content

no-unused-components crashes on dynamic components #789

Closed
@armano2

Description

@armano2

Tell us about your environment

  • ESLint version: 5.9.0
  • eslint-plugin-vue version: ^5.0.0
  • Node version: 8.12.0

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions