AUR6005

Error Message

AUR6005: Unable to find a strategy for collection type: {{type}}. Supported types: Array, null/undefined.

Where {{type}} is the runtime type name/description of the provided collection.

Description

This error occurs when virtual-repeat is given a collection type it doesn’t know how to virtualize.

Example Trigger

export class MyList {
  // ❌ Map is not supported by the default strategy set
  items = new Map<string, unknown>();
}
<template>
  <div virtual-repeat.for="item of items">${item}</div>
</template>

Correct Usage

  • Use an Array as the source for virtual-repeat (convert other structures to an array).

Troubleshooting

  • Log the value you bind to virtual-repeat.for and verify it is an Array.

  • If you need to virtualize a custom collection type, look for (or implement) a supported collection strategy for that type.

Last updated

Was this helpful?