Error codesLists

This @for loop name cannot be destructured this way

MARKLESS_REPEAT_ITEM_PATTERN_UNSUPPORTEDerrorMarkless raises it while it builds your .tsrx files.

The message

MARKLESS_REPEAT_ITEM_PATTERN_UNSUPPORTED: @for (const <patternSource> of ...) uses a default value, a rest element or a computed key. A destructured loop name may only pick array positions and named fields, so this list would render no rows.
Each name a destructured loop name binds is read straight off the row item at a fixed position or field; a default, a rest element or a computed key has no fixed place on the item.
Loop with a plain name and read the fields off it, such as `@for (const row of rows; key row.id) { <li>{row.name ?? "none"}</li> }`.
https://markless.dev/errors/MARKLESS_REPEAT_ITEM_PATTERN_UNSUPPORTED

Words in angle brackets change from case to case.

Why

Each name a destructured loop name binds is read straight off the row item at a fixed position or field; a default, a rest element or a computed key has no fixed place on the item.

Fix

Loop with a plain name and read the fields off it, such as `@for (const row of rows; key row.id) { <li>{row.name ?? "none"}</li> }`.

Where Markless raises it

All error codes