How do I suppress this TS error? I have turned off the strict mode in the tsconfig. #406
-
|
Hi, I am facing an annoying problem by using the VueUse's useVModel. The project sill can compile, but the TS server keeps reporting this as a syntactical error. Any ideas I could get around with it? Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 7 replies
-
|
@jzs11 You may be able to suppress it with See: #342 (comment) |
Beta Was this translation helpful? Give feedback.
-
|
Hi @jzs11, |
Beta Was this translation helpful? Give feedback.






Hi @jzs11,
v-model:data="xxx"is shorthand of:data="xxx"+@update:data="xxx = $event", when you use:data+v-model:data, here actually has double:databinding. So you just need to remove:dataonly keepv-model:data.