"v-model cannot be used on a prop" error with Vue 3 (>= 3.2.45) #17112
-
Hello, I'd like to upgrade my quasar 2 (2.15.2) project to every package last version but when it comes to upgrade Vue I get an error:
Since quasar documentation encourages the Now, in this project I have hundred of component files with this "problem". Does this means that my project will be stucked to this Vue 3.2.45 version from now on? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
I doubt it's related to Quasar. In order to get help, you can share one out of "hundred of component files with this 'problem'" |
Beta Was this translation helpful? Give feedback.
-
Hi, It only means that you are incorrectly using the v-model. |
Beta Was this translation helpful? Give feedback.
Well, perhaps I was misunderstood, I didn't mean to say it's directly related to quasar.
Anyway, looks like that the whole problem revolved around
props
only.I have several QDialog triggered by and QInput valued by props variables:
It was enough to replace
v-model
with:modelValue
and the compiling error disappeared.