Error codesState

Shared instance has no such field to seed

MARKLESS_SHARED_SEED_UNKNOWN_FIELDerrorMarkless raises it while it builds your .tsrx files.

The message

MARKLESS_SHARED_SEED_UNKNOWN_FIELD: Cannot write to "<target>" because "<definitionName>()" declares no graph field named "<field>". Instance callback fields such as "<field>" are not supported yet (tracked).
A component body seed is lowered into an initial value for a graph node the shared definition declared. With no matching node there is nothing to seed, and the authored assignment cannot run on the server because the emitted body keeps no local for the shared instance.
Return "<field>" from the <definitionName>() factory as state() or computed() graph data, or pass the callback to the component as a prop and call it from an event handler.
https://markless.dev/errors/MARKLESS_SHARED_SEED_UNKNOWN_FIELD

Words in angle brackets change from case to case.

Why

A component body seed is lowered into an initial value for a graph node the shared definition declared. With no matching node there is nothing to seed, and the authored assignment cannot run on the server because the emitted body keeps no local for the shared instance.

Fix

Return "<field>" from the <definitionName>() factory as state() or computed() graph data, or pass the callback to the component as a prop and call it from an event handler.

Where Markless raises it

All error codes