若有vite-env.d.ts文件(没有则添加一个)将以下内容复制到文件中
/// <reference types="vite/client" />
declare module '*.vue' {
import type { DefineComponent } from 'vue'
const component: DefineComponent<{}, {}, any>
export default component
}
若有vite-env.d.ts文件(没有则添加一个)将以下内容复制到文件中
/// <reference types="vite/client" />
declare module '*.vue' {
import type { DefineComponent } from 'vue'
const component: DefineComponent<{}, {}, any>
export default component
}