The problem of reporting an error in vue+ts+iview

for example, I recently used vue+ts+iview to do a project. But ts reported an error Property "validate" does not exist on type" Element | Element [] | Vue | Vue [] ".Property" validate" does not exist on type "Element". Although it does not affect the operation of the project, but the editor is red looks very uncomfortable, I would like to ask how to solve! In addition, vetur cannot be automatically formatted after using ts. I would like to ask how to solve the problem!


import Vue from 'vue'

declare module 'vue/types/vue' {
  interface Vue {
    validate: any
  }
}
Menu