Error codesState

A shared() value is read outside a component

MARKLESS_SHARED_REFERENCE_OUTSIDE_COMPONENTerrorMarkless raises it while it builds your .tsrx files.

The message

MARKLESS_SHARED_REFERENCE_OUTSIDE_COMPONENT: A shared() value is read outside a component
A shared() value belongs to a request, a container or a rendered widget, and only a component body knows which one. Read anywhere else, the code would reach the value before any request made it.
Call it inside the callback: `const <name>Value = <name>()`.
https://markless.dev/errors/MARKLESS_SHARED_REFERENCE_OUTSIDE_COMPONENT

Words in angle brackets change from case to case.

Why

A shared() value belongs to a request, a container or a rendered widget, and only a component body knows which one. Read anywhere else, the code would reach the value before any request made it.

Fix

Call it inside the callback: `const <name>Value = <name>()`.

Where Markless raises it

All error codes

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