Error codesState

storage() needs a string key

MARKLESS_STORAGE_KEY_STATICerrorMarkless raises it while it builds your .tsrx files.

The message

MARKLESS_STORAGE_KEY_STATIC: storage(key, fallback) requires an explicit key to be a static string literal; omit it to derive markless:<identifier>.
The compiler bakes the key into a stable graph identity and storage key at compile time; it cannot be a runtime value.
Pass a string literal, for example `storage('theme', 'light')`, or omit the key: `storage('light')`.
MARKLESS_STORAGE_KEY_STATIC: storage() requires its fallback to be a static string literal.
The compiler must embed the fallback as the initial graph value without executing storage() at runtime.
Use a string literal fallback, for example `storage('light')`.
https://markless.dev/errors/MARKLESS_STORAGE_KEY_STATIC

Words in angle brackets change from case to case.

Why

Markless reads the storage() key and fallback when it builds your code. So both must be string literals.

Fix

Pass string literals, like storage('theme', 'light'). Or leave out the key: storage('light').

Where Markless raises it

All error codes