I get the error above as I am trying to use the v-for directive on a component in a component.
This is working and iterating through some data stored in participants
<template>
<div
v-for="(participant, index) in participants"
v-bind:key="index"
>
hello world
</div>
</template>
But changing to this gives me the above error.
<template>
<Step1Item
v-for="(participant, index) in participants"
v-bind:key="index"
>
hello world
</Step1Item>
</template>
<script>
import Step1Item from "./Step1Item.vue";
export default {
name: "Step1",
components: Step1Item,
[...]
</script>
The component is:
<template>
<div>
{{ name }}
</div>
</template>
<script>
export default {
name: "Step1Item",
props: {
name: String,
},
};
</script>