错误示例截图
解决方法
修改shims-vue.d.ts
中的内容
declare module "*.vue" {
import { defineComponent } from "vue";
const Component: ReturnType<typeof defineComponent>;
export default Component;
}
标签:node,vue,dist,Component,ts,参数,import
From: https://www.cnblogs.com/tanxj/p/16825009.html