Error codesState

Imported module-scope state is not resumable

MARKLESS_STATE_CROSS_MODULE_IMPORTerrorMarkless raises it while it builds your .tsrx files.

The message

MARKLESS_STATE_CROSS_MODULE_IMPORT: Cannot import graph state "<importedName>" from "<sourceModule>" into "<filename>".
Module-scope state has no per-request graph ownership. Importing it would compile reads as dead snapshots and writes as plain module mutation instead of connecting to this document payload.
Move the state() call into the component that owns it, or expose request/container/page lifetime data with shared() and import that shared() definition instead.
https://markless.dev/errors/MARKLESS_STATE_CROSS_MODULE_IMPORT

Words in angle brackets change from case to case.

Why

Module-scope state has no per-request graph ownership. Importing it would compile reads as dead snapshots and writes as plain module mutation instead of connecting to this document payload.

Fix

Move the state() call into the component that owns it, or expose request/container/page lifetime data with shared() and import that shared() definition instead.

Where Markless raises it

All error codes