Vue Type issue for v-model on array element
Hi, this isn't directly a Nuxt question, but a Vue typescript question.
I'm getting this type error for when I have an array of elements that are not undefined, e.g.,
string[]
, but when I use v-for
on that array via the index as I have to be able to update the array value.
I'm not sure how to fix this error as, e.g., using !
after the array index is not recognized.0 Replies