defineProps conflicts with defineModel in template #4799
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.4
VSCode version
1.92.2
Vue version
3.5.0
TypeScript version
5.5.4
System Info
package.json dependencies
No response
Steps to reproduce
Create a Vue file with the following content:
What is expected?
The type of
something
should bestring | undefined
.What is actually happening?
I am getting the following error:
This also happens when I run
vue-tsc
.Link to minimal reproduction
No response
Any additional comments?
It seems like there is a conflict between
defineProps
anddefineModel
.The text was updated successfully, but these errors were encountered: