Error codesLists

The browser cannot find this list’s rows

MARKLESS_KEYED_REPEAT_ROWS_UNPLACEDerrorMarkless raises it while it builds your .tsrx files.

The message

MARKLESS_KEYED_REPEAT_ROWS_UNPLACED: This @for over <itemName> shares its parent element with another @for, @if, @switch, @try or component both before and after it, so how many elements stand on either side of its rows is only known when the page renders. The browser would show the rows the server sent and never update them.
After the page loads, the browser finds a list’s rows by counting the parent’s child elements from its start or from its end. That count needs every sibling on at least one side to be a plain element or text.
Wrap this @for, or the construct beside it, in its own element, so one side of the rows holds only plain elements and text.
https://markless.dev/errors/MARKLESS_KEYED_REPEAT_ROWS_UNPLACED

Words in angle brackets change from case to case.

Why

After the page loads, the browser finds a list’s rows by counting the parent’s child elements from its start or from its end. That count needs every sibling on at least one side to be a plain element or text.

Fix

Wrap this @for, or the construct beside it, in its own element, so one side of the rows holds only plain elements and text.

Where Markless raises it

All error codes