Error codesLists

This @for collection reaches no cell on its shared instance

MARKLESS_REPEAT_COLLECTION_UNREADABLEerrorMarkless raises it while it builds your .tsrx files.

The message

MARKLESS_REPEAT_COLLECTION_UNREADABLE: @for (const <itemName> of <collectionSource>) reads through `<rootName>`, a shared instance local of this component, but `<collectionSource>` resolves to no graph cell. `<rootName>` exists only inside the component function, so the rows would be taken from an expression that names nothing where the repeat renders.
Rows come from a reactive graph read; a shared-instance path that resolves to no cell leaves the repeat with an authored expression whose receiver is undeclared in the emitted scope, which throws on the first server render.
Return the cell as a property of a spread object from the shared factory, so `<collectionSource>` names a graph cell. Before: `shared(() => { const box = state({ items: [] }); return box; })`; after: `shared(() => { const box = state({ items: [] }); return { ...box }; })`.
https://markless.dev/errors/MARKLESS_REPEAT_COLLECTION_UNREADABLE

Words in angle brackets change from case to case.

Why

Rows come from a reactive graph read; a shared-instance path that resolves to no cell leaves the repeat with an authored expression whose receiver is undeclared in the emitted scope, which throws on the first server render.

Fix

Return the cell as a property of a spread object from the shared factory, so `<collectionSource>` names a graph cell. Before: `shared(() => { const box = state({ items: [] }); return box; })`; after: `shared(() => { const box = state({ items: [] }); return { ...box }; })`.

Where Markless raises it

All error codes