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
Hi all
Can anyone tell me how to make VUE on TSX understand v-model with arguments?
I didn't find anything in the official documentation.
Using the latest version of vue 3 and ts 4.4.4 (if you need any more information write)
The problem is with TS. It doesn't understand the v-model construct, and since the user property is required, TS shows an error.
If make the user property optional, then this is normal for TS. And babel is already transpiling everything normally at the output.
Use Visual Studio Code with extensions Vue Language Features (Volar) v0.34.16 and TypeScript Vue Plugin (Volar) v0.34.16
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi all
Can anyone tell me how to make VUE on TSX understand v-model with arguments?
I didn't find anything in the official documentation.
Using the latest version of vue 3 and ts 4.4.4 (if you need any more information write)
The problem is with TS. It doesn't understand the v-model construct, and since the user property is required, TS shows an error.
If make the user property optional, then this is normal for TS. And babel is already transpiling everything normally at the output.
Use Visual Studio Code with extensions Vue Language Features (Volar) v0.34.16 and TypeScript Vue Plugin (Volar) v0.34.16
Beta Was this translation helpful? Give feedback.
All reactions