AUR6001
Error Message
AUR6001: Invalid calculation state. Virtual repeater has no items.
Description
This error occurs when the virtual repeater tries to perform a measurement/render calculation that requires an items collection, but the collection is missing (null/undefined) or empty at a time when the strategy expects at least one item.
Example Trigger
export class MyList {
// ❌ items is undefined initially
items: unknown[];
}<template>
<div virtual-repeat.for="item of items">${item}</div>
</template>Correct Usage
Initialize the collection (
items = []) and then replace it when data arrives.If the list is conditional, guard it with
if.binduntil data is ready.
Troubleshooting
Verify the collection expression resolves to an
Array(or a supported collection type for your setup).If the collection is async-loaded, ensure it’s initialized before the template is rendered.
Last updated
Was this helpful?