在引用.vue组件时,明明路径都对,但是就是报错,解决方法:在src下创建

内容如:
TypeScript
/// <reference types="vite/client" />
declare module '*.vue' {
import type { DefineComponent } from 'vue'
const component: DefineComponent<{}, {}, any>
export default component
}