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
I have a Props type which works perfectly fine, but using a generic makes it break (except 'Partial', 'Required', 'Readonly', 'Pick', 'Omit').
typeProps= ... //workstypeA<T>=T// should also workconstprops=defineProps<Props>()// worksconstprops=defineProps<A<Props>>()// doesn't work ([plugin:vite:vue] [@vue/compiler-sfc] Unresolvable type reference or unsupported built-in utility type)
What is expected?
That the generic wouldn't change anything
What is actually happening?
[plugin:vite:vue] [@vue/compiler-sfc] Unresolvable type reference or unsupported built-in utility type
Pretty sure there are other issues but they're all saying it's a specifc generic that doesn't work, for me it's all generics (except 'Partial', 'Required', 'Readonly', 'Pick', 'Omit'), which is confusing since everone seems to have the same error. Maybe they didn't realise it's all generics. I remember hearing once something like this didn't work and someone on StackOverflow told me the ones that do work, but that's all I know. Could be a duplicate, if it is, I want to know the issue.
I'm just generally confused, hope someone can clear this up
The text was updated successfully, but these errors were encountered:
Vue version
3.3.4
Link to minimal reproduction
https://play.vuejs.org/#eNp9Uk1PwzAM/Sshl27S2IR2m7pKA00CDjDBJC65lNbtOtIkysfYVPW/46RrtwNwqJq892w/x27oSqnpwQFd0NhkulKWGLBOJUxUtZLakoZoKEhLCi1rEqE0ulAPslY9488+E9JMZFIYS2pTkqUPH0WPwLkkH1Lz/CYaMxHPumpYBy8WasVTC3gjJN7dJU0Tgts2nuEtoJVQzpLDbS1z4EtGkWe0o3zpJJ6Fn089pKMTag16KapyujdSYJeNj2A0Q23FQb8qW6FXRhckMJ5L0er3c8CsdjDp8WwH2dcv+N4cPcboRoMBfQBGB86mugTb0ev3FzjieSCxFcdR/Q/5BkZy5z12snsncrR9pQtun8JAKlFuzfpoQZi+KW/UK9ugZxQH5J/pr9YvdufTeYhjosVX7Ifr1+QyLI3Dw+/qwQfoepcIT0WJE7NYKyjsSQHZaKkMrkdTn/xxQYSrP0G3g2AVbxPktx7o9kmdQ3IoKgEhQbyKwz9JRuPOy3mvaPsDtQ/3fw==
Steps to reproduce
I'm using script setup with TypeScript and Nuxt3.
I have a Props type which works perfectly fine, but using a generic makes it break (except 'Partial', 'Required', 'Readonly', 'Pick', 'Omit').
What is expected?
That the generic wouldn't change anything
What is actually happening?
[plugin:vite:vue] [@vue/compiler-sfc] Unresolvable type reference or unsupported built-in utility type
System Info
Any additional comments?
Pretty sure there are other issues but they're all saying it's a specifc generic that doesn't work, for me it's all generics (except 'Partial', 'Required', 'Readonly', 'Pick', 'Omit'), which is confusing since everone seems to have the same error. Maybe they didn't realise it's all generics. I remember hearing once something like this didn't work and someone on StackOverflow told me the ones that do work, but that's all I know. Could be a duplicate, if it is, I want to know the issue.
I'm just generally confused, hope someone can clear this up
The text was updated successfully, but these errors were encountered: