Error codesInternal checks

An expression reads a name in a shape Markless cannot follow

MARKLESS_SYMBOL_MODULE_UNRESOLVED_GRAPH_REFERENCEerrorMarkless raises it while it builds your .tsrx files.

The message

MARKLESS_SYMBOL_MODULE_UNRESOLVED_GRAPH_REFERENCE: The emitted <kind> module for <symbolId> still names "<name>" directly. <where> "<name>" is a state binding that lives in the component, not in the handler module, so this module would throw a ReferenceError the first time it runs.
A handler is compiled into a module of its own and every read of state has to be rewritten into a graph read. When an expression nests a state read under a call — `s.text.slice(0, 3).length` — the rewrite has no name for the value it would read, so nothing is rewritten and the authored text is emitted as it stands. Shipping that module would move a build-time gap into a runtime crash on the first click.
Read the state into a local first, then use the local: `const value = <name>.<field>;` on its own line, and build the expression out of `value`. A local read is lowered, and everything after it is plain JavaScript.
https://markless.dev/errors/MARKLESS_SYMBOL_MODULE_UNRESOLVED_GRAPH_REFERENCE

Words in angle brackets change from case to case.

Why

Markless checks its own work as it builds and runs your app. This check failed, which means a bug in Markless, not in your code.

Fix

Open an issue with the message above and the steps that cause it.

Where Markless raises it

All error codes

Button sounds are from Josh Comeau's Button Sounds library.