Work with TSX on vue 3 #6021
Unanswered
Dolyka
asked this question in
Help/Questions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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