Error codesState

This shared() element() handle cannot be named by an IDREF here

MARKLESS_ELEMENT_HANDLE_IDREF_WIDGET_ROOTerrorMarkless raises it while it builds your .tsrx files.

The message

MARKLESS_ELEMENT_HANDLE_IDREF_WIDGET_ROOT: Cannot resolve <attributeName>={<source>} because "<handleName>" is declared in a shared() factory that is not { scope: 'subtree' }.
A subtree-scoped factory is one graph per rendered widget, so the minted id has to carry which widget it belongs to. That token exists for every rendered widget, its root included, and never exists for an app-wide factory.
Give the factory { scope: 'subtree' } and keep both ends of the relationship inside one rendered widget.
https://markless.dev/errors/MARKLESS_ELEMENT_HANDLE_IDREF_WIDGET_ROOT

Words in angle brackets change from case to case.

Why

A subtree-scoped factory is one graph per rendered widget, so the minted id has to carry which widget it belongs to. That token exists for every rendered widget, its root included, and never exists for an app-wide factory.

Fix

Give the factory { scope: 'subtree' } and keep both ends of the relationship inside one rendered widget.

Where Markless raises it

All error codes