vbenjs / vite-plugin-vue-setup-extend

Extending the vue script setup syntactic sugar
MIT License
151 stars 19 forks source link

引入外部ts类型失败 #12

Open liang-xinfa opened 7 months ago

liang-xinfa commented 7 months ago

使用了vite-plugin-vue-setup-extend之后,在.vue,defineProps的Props通过import type { Props } from './foo'导入时,出现报错Internal server error: Cannot read properties of undefined (reading 'some')

zjtt commented 3 months ago

遇到了相同的问题,vue3.3支持外部引入了 image

但是使用vite-plugin-vue-setup-extend后会报错 image

liang-xinfa commented 3 months ago

我是把源码中的src/lib.ts中的第9行注释掉,然后直接使用descriptor.script获取name

zjtt commented 2 months ago

收到啦,谢谢