Closed
Description
The below template gives a "'i' is declared but its value is never read." in both volar and vue-tsc.
<template v-for="[i, part] of someObject" :key="i">
{{ part }}
</template>
While the i
is indeed not used inside the template itself, it is used in the key and can thus not simply be removed.
A temporary workaround can be:
<template v-for="something of someObject" :key="something[0]">
{{ something[1] }}
</template>