state() ran outside a .tsrx file
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_CALLWords 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.