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
  }
}
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1c2781f-33870.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1c2781f-33870.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?