Error codesComponents

A markup expression that reads state needs a route the page can follow

MARKLESS_TEMPLATE_EXPRESSION_UNSUPPORTEDerrorMarkless raises it while it builds your .tsrx files.

The message

MARKLESS_TEMPLATE_EXPRESSION_UNSUPPORTED: <target> is written as `<source>`, which reads state but is not an expression this compiler can keep current.
An expression with no graph node behind it renders once, from whatever the value was at render, and a later write never reaches it - so the page would show a stale value and nothing would say so.
Write a plain read (`group.value`), an expression built from reads, operators and method calls, or a call to a function declared with `function` or `const` that does not change state. A function held in a `let`, or one that writes state, cannot be followed: move the write into an event handler.
https://markless.dev/errors/MARKLESS_TEMPLATE_EXPRESSION_UNSUPPORTED

Words in angle brackets change from case to case.

Why

An expression with no graph node behind it renders once, from whatever the value was at render, and a later write never reaches it - so the page would show a stale value and nothing would say so.

Fix

Write a plain read (`group.value`), an expression built from reads, operators and method calls, or a call to a function declared with `function` or `const` that does not change state. A function held in a `let`, or one that writes state, cannot be followed: move the write into an event handler.

Where Markless raises it

All error codes