Error codesState

A guard returns an element

MARKLESS_ELEMENT_GUARD_RETURN_UNSUPPORTEDerrorMarkless raises it while it builds your .tsrx files.

The message

MARKLESS_ELEMENT_GUARD_RETURN_UNSUPPORTED: <componentName> uses an element-valued guard return before its template root, so the public render plan cannot preserve both outcomes.
The public render module needs one planned component root with stable locators. An earlier element-valued return creates another root whose conditional statement flow is not represented by that plan.
Rewrite the two outcomes as a root-level @if/@else template, or use return null when the guard should render nothing.
https://markless.dev/errors/MARKLESS_ELEMENT_GUARD_RETURN_UNSUPPORTED

Words in angle brackets change from case to case.

Why

The public render module needs one planned component root with stable locators. An earlier element-valued return creates another root whose conditional statement flow is not represented by that plan.

Fix

Rewrite the two outcomes as a root-level @if/@else template, or use return null when the guard should render nothing.

Where Markless raises it

All error codes