-
-
Notifications
You must be signed in to change notification settings - Fork 8.8k
Closed
Labels
Description
Vue version
3.5.2
Link to minimal reproduction
Steps to reproduce
- Add a component with
defineModel
- Add the component in tsx file and add onUpdate event
What is expected?
The type of onUpdate
should be right
What is actually happening?
There is no onUpdate
prop in the component
System Info
System:
OS: macOS 14.2.1
CPU: (8) x64 Intel(R) Core(TM) i5-8257U CPU @ 1.40GHz
Memory: 12.89 MB / 16.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 18.13.0 - ~/.version-fox/temp/1725552000-79457/nodejs/bin/node
npm: 8.19.3 - ~/.version-fox/temp/1725552000-79457/nodejs/bin/npm
pnpm: 8.15.8 - ~/.version-fox/temp/1725552000-79457/nodejs/bin/pnpm
bun: 1.1.25 - ~/.bun/bin/bun
Browsers:
Chrome: 128.0.6613.119
Edge: 128.0.2739.67
Safari: 17.2.1
Any additional comments?
I tested both vue-tsc@2.0.29
and vue-tsc@2.1.6
, and encountered the same issue in both cases, leading me to conclude that the problem lies with Vue rather than Volar.
I downgraded Vue to version 3.4.38, and it works now.