Error codesState

The markup reads an element() handle

MARKLESS_ELEMENT_HANDLE_RENDER_READerrorMarkless raises it while it builds your .tsrx files.

The message

MARKLESS_ELEMENT_HANDLE_RENDER_READ: Cannot render "<source>" because "<handleName>" is an element() handle, not serializable graph state.
During initial render the browser DOM element does not exist, and browser resume does not rerun component bodies. Element handles are available to lazy event or behavior code after resume locates the host node.
Read DOM properties inside an event handler or attach behavior, and render serializable state() or computed() data instead.
https://markless.dev/errors/MARKLESS_ELEMENT_HANDLE_RENDER_READ

Words in angle brackets change from case to case.

Why

An element does not exist yet while the page renders. So the markup cannot read an element() handle.

Fix

Read the element inside an event handler or an attach behavior. Show state values in the markup instead.

Where Markless raises it

All error codes