vue3 ts 报错:无法找到模块“../views/index/Home.vue”的声明文件
解决办法:
env.d.ts 新增代码片段:
declare module "*.vue" {
import type { DefineComponent } from "vue";
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/ban-types
const component: DefineComponent<{}, {}, any>;
export default component;
}
人工智能学习网站
原文地址:https://blog.csdn.net/xutongbao/article/details/140328680
免责声明:本站文章内容转载自网络资源,如本站内容侵犯了原著者的合法权益,可联系本站删除。更多内容请关注自学内容网(zxcms.com)!