Error codesState

Shared definitions cannot depend on each other circularly

MARKLESS_SHARED_DEFINITION_CYCLEerrorMarkless raises it while it builds your .tsrx files.

The message

MARKLESS_SHARED_DEFINITION_CYCLE: Cannot create shared definition cycle "<cycleSource>".
shared() instances are created from graph context during initial render and resume. A cycle would require one shared instance before its own dependency graph can be created.
Break the shared() dependency cycle by passing plain data between definitions or by moving the shared read into an event method that runs after instance creation.
https://markless.dev/errors/MARKLESS_SHARED_DEFINITION_CYCLE

Words in angle brackets change from case to case.

Why

shared() instances are created from graph context during initial render and resume. A cycle would require one shared instance before its own dependency graph can be created.

Fix

Break the shared() dependency cycle by passing plain data between definitions or by moving the shared read into an event method that runs after instance creation.

Where Markless raises it

All error codes