vue3+ts项目中在编辑中出现这种提示解决办法
新建env.d.ts文件或者如果原有env.d.ts文件,则加入以下代码即可
declare module '*.vue' {
import type { DefineComponent } from 'vue';
const vueComponent: DefineComponent<{}, {}, any>;
export default vueComponent;
}
vue3+ts项目中在编辑中出现这种提示解决办法
新建env.d.ts文件或者如果原有env.d.ts文件,则加入以下代码即可
declare module '*.vue' {
import type { DefineComponent } from 'vue';
const vueComponent: DefineComponent<{}, {}, any>;
export default vueComponent;
}