vite-plugin-vue-setup-extend
vite-plugin-vue-setup-extend copied to clipboard
引入外部ts类型失败
使用了vite-plugin-vue-setup-extend之后,在.vue,defineProps<Props>的Props通过import type { Props } from './foo'导入时,出现报错Internal server error: Cannot read properties of undefined (reading 'some')
遇到了相同的问题,vue3.3支持外部引入了
但是使用vite-plugin-vue-setup-extend后会报错
我是把源码中的src/lib.ts中的第9行注释掉,然后直接使用descriptor.script获取name
收到啦,谢谢