找不到模块“../views/**.vue”或其相应的类型声明。
In the src folder add the file shims-vue.d.ts with the following content:
在src文件夹下新建shims-vue.d.ts,然后输入以下内容
Vue 2:
declare module "*.vue" {import Vue from 'vue'export default Vue}
Vue 3:
declare module '*.vue' {import type { DefineComponent } from 'vue'const component: DefineComponent<{}, {}, any>export default component}
问题解决