Error codesEvents

A handler reads something the browser does not have

MARKLESS_EVENT_HANDLER_EMIT_UNSUPPORTEDerrorMarkless raises it while it builds your .tsrx files.

The message

MARKLESS_EVENT_HANDLER_EMIT_UNSUPPORTED: Cannot emit lazy <kind> symbol "<symbolId>" because it reads component-local "<name>", a local <bindingKindLabel> value that cannot cross a resume boundary.
Lazy handler symbols run after browser resume. Handler bodies may use graph references, element handles, props/shared values, module imports, or serializable capture-plane inputs; unsupported body locals would otherwise become silent no-op code.
MARKLESS_EVENT_HANDLER_EMIT_UNSUPPORTED: Cannot emit lazy <kind> symbol "<symbolId>" because the compiler could not read its source, so the values it captures across the resume boundary are unknown.
Lazy handler symbols run after browser resume. Handler bodies may use graph references, element handles, props/shared values, module imports, or serializable capture-plane inputs; unsupported body locals would otherwise become silent no-op code.
https://markless.dev/errors/MARKLESS_EVENT_HANDLER_EMIT_UNSUPPORTED

Words in angle brackets change from case to case.

Why

The handler reads a local from the component body that Markless cannot carry to the browser. It holds a class instance, a DOM node, a function declared with let, or another value that is not plain data.

Fix

Declare a function with function or const, and the handler runs its definition. Keep plain data in the local, or make it state(). For an element, use element().

Where Markless raises it

All error codes