Typecheck error on component using generic
and defineModel
with a custom name containing a dash
#4890
Labels
bug
Something isn't working
good reproduction ✨
This issue provides a good reproduction, we will be able to investigate it first
🔨 p3-minor-bug
Vue - Official extension or vue-tsc version
2.1.6
VSCode version
Not relevant
Vue version
3.5.8
TypeScript version
5.6.2
System Info
package.json dependencies
No response
Steps to reproduce
https://stackblitz.com/edit/vitejs-vite-nctods?file=src%2FApp.vue
App.vue
defines ageneric
as well as usesdefineModel
with a custom name containing dash.Run
pnpm test
to type-check the project, and the weird error will occur:A grammar error occurs if multiple generic parameters are present:
Try to remove a dash from
hello-world
and see the both errors go away.What is expected?
No such errors
What is actually happening?
They do occur
Link to minimal reproduction
No response
Any additional comments?
No response
The text was updated successfully, but these errors were encountered: