Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

引入外部ts类型失败 #12

Open
liang-xinfa opened this issue Mar 26, 2024 · 3 comments
Open

引入外部ts类型失败 #12

liang-xinfa opened this issue Mar 26, 2024 · 3 comments

Comments

@liang-xinfa
Copy link

liang-xinfa commented Mar 26, 2024

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

@zjtt
Copy link

zjtt commented Aug 9, 2024

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

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

@liang-xinfa
Copy link
Author

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

@liang-xinfa liang-xinfa reopened this Aug 26, 2024
@zjtt
Copy link

zjtt commented Aug 26, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants