You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Infer ts intersection types is not a normalize feature of vue, see vuejs/core#4294 and vuejs/core#7394. (the PR of this feature is ready to merge, maybe come soon)
unplugin-vue-macros implements this via a inner plugin, but it will lose types definition of props when transform. (and I don't know whether the official implementation will also is it)
So, I think you'd better use the js props or literal props type currently. And we keep this issue open to track the progress.
Describe the bug
when i use unplugin-vue-macros/vite i can import props in external files,but build error
Reproduction
as example
Steps to reproduce
pnpm build-ts
System Info
Validations
The text was updated successfully, but these errors were encountered: