-
-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
Import script setup component with generics breaks defineComponent #11866
Comments
In your reproduction link, the Could you also confirm if the link you provided is correct? |
But no error was trigger on this example, however the same code display an error in VSCode VSCode versionVersion: 1.92.2 (Universal) System InfoSystem: I also use Vue - Official extension v2.1.6 and Typescript 5.3.4. |
It should be fixed by vuejs/language-tools#4823 |
Vue version
3.5.3
Link to minimal reproduction
https://play.vuejs.org/#eNqdUsGO00AM/RVrLrtIq/RQuJRsJUCLBBKwYitOI6EhcUOWiWc0MylFUf4de5qm0Qo4cEpsP795tt+gXnlfHHpUG1XGKrQ+bTW1nXchwQA17lvCN45jQkowwj64Dq644erljJP6VChWEgih1DXhMSOYx/Q2f5d814MmADIdbkCLEq1uJFOdAXEDGQL5DfkbM6A2ycylvXPS/s0ErTJE0/hMU7ma5+EgYeetScgRQFm3h+0wSCeMY7mSMOflYVjxf7laNKgblWLlaN82xWN0xLvKT2sl+NZi+ORT6yhqNYvSyljrfr7PuRR6zLpzz3esfvwh/xiPktPqPmDEcMBpGVJLJjSYTuW7h4945P+52Lm6t4z+R/EzRmd70XiCve6pZtkLXFb7Lt+zpWYX744JKZ6HEqGX7WvF95WD/G30i9x18fx8Et7i2RsXs0HE1Huwhppb7mMaaJAwtBWHO+BZkOoIMQVWpdXSm/fB+d0vj09NqYlPFRPw5Gi/GNsj3E7G+yCpcre9ZnuwzgnomSjOGKGNJ2NmY01DJX5pAw9Zx7S0ydT/470TwdvMPyyVjkzAmMmRT1349YBBbsL7WxcvirUafwMk3UGc
Steps to reproduce
1 - Create a script setup component with a generic
2 - Use it in another component in option api with defineComponent
What is expected?
No error
What is actually happening?
"No overload matches this call." error on defineComponent method and component typescript inference is broken.
System Info
No response
Any additional comments?
No response
The text was updated successfully, but these errors were encountered: