vite配置报错整理 在main.ts中引入App.vue报错 配置别名时引入path路径报错 请求接口产生跨域问题 引入组件报错 在main.ts中引入App.vue报错 Cannot find module ‘./App.vue’ or its corresponding type declarations. 需在App.vue同级目录下的 vite-env.d.ts 文件中配置 declare module "*.vue" { import { defineComponent } from "vue"; const component: ReturnType<typeof defineComponent>;