After the introduction of iview into the vue-cli project, the label error is reported and the vue prompt is incorrect.

when the iview layout is introduced into the vue project, the tag error is reported, and the vue smart prompt cannot find the page

clipboard.png

:

clipboard.png
ESLintvscodeESLint

clipboard.png


screenshot is taken completely.
but this error, you can see at a glance, there is no < MenuItem > or you typed something wrong, and the tag pair is not matched with


.

add this rule to rules in the eslintrc.json file

"vue/no-parsing-error": [
      2,
      {
        "x-invalid-end-tag": false
      }
Menu