Error codesComponents

state() ran outside a .tsrx file

MARKLESS_FRAMEWORK_API_RUNTIME_CALLerrorMarkless raises it while a page runs.

The message

MARKLESS_FRAMEWORK_API_RUNTIME_CALL: Framework API executed without compiler output
<apiName>() is an markless framework API that must be rewritten by the .tsrx compiler before runtime execution.
https://markless.dev/errors/MARKLESS_FRAMEWORK_API_RUNTIME_CALL

Words in angle brackets change from case to case.

Why

Functions like state() and computed() only work after Markless rewrites them while it builds your app. This call ran as plain JavaScript, so it threw.

Fix

Move the call into a .tsrx file. Do not call these functions from a plain .ts or .js file.

Where Markless raises it

All error codes