Cannot get define props to work with interface in .d.ts file #10669
Unanswered
tannert8155
asked this question in
Help/Questions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This seems to be a pretty basic setup. IDialogCreateLoadReviewOptions is in a d.ts file(a lot of my types are), but I get "Internal server error: [@vue/compiler-sfc] Unresolvable type reference or unsupported built-in utility type".
My .d.ts files are just basic interfaces at the top-level. Typescript has no problem finding them, it's just an issue with Vue it seems. I am using "vue": "^3.3.11".
If I move the interface into the component the error goes away, and I am pretty sure it would go away if I wasn't using a d.ts file and was using exports. Is this a known issue or am I doing something wrong?
I did find this comment: #8612 (comment)
I've added that to my vite.config. It still doesn't work. I don't really want to go and import every type throughout my project.
Beta Was this translation helpful? Give feedback.
All reactions