You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are encountering the following issue when using Pug, with v-slot and v-for.
The goal was to take all slots passed into our wrapper component, and pass them down into a child component. To do this, we use v-for with $slots and create a v-slot for each of them, where the content is a slot of the same name.
The ts-plugin gives us the following error: 'mySlot' is declared but its value is never read
template(v-slot:[mySlot]="slotProps" v-for="(_, mySlot) in $slots" :key="mySlot")
slot(:name="mySlot" v-bind="slotProps")
We have also tried with a less complex example, and it appears the issue always occurs when a template has both a v-slot and a v-for on it.
We have noticed that this does not occur when using HTML, only Pug. Here is the HTML equivalent:
We are encountering the following issue when using Pug, with
v-slot
andv-for
.The goal was to take all slots passed into our wrapper component, and pass them down into a child component. To do this, we use
v-for
with$slots
and create av-slot
for each of them, where the content is aslot
of the same name.The
ts-plugin
gives us the following error:'mySlot' is declared but its value is never read
We have also tried with a less complex example, and it appears the issue always occurs when a
template
has both av-slot
and av-for
on it.We have noticed that this does not occur when using HTML, only Pug. Here is the HTML equivalent:
The text was updated successfully, but these errors were encountered: