A guard returns an element
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_UNSUPPORTEDWords 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.