MARKLESS_SHARED_DEFINITION_CYCLE
Shared definitions cannot depend on each other circularly: a Markless compiler error.
Error from the compiler, while it builds your .tsrx files.
What happened
Markless prints the message, the reason, and a suggestion:
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.
How to fix it
Start with the suggestion in the message above.
This page has no guide yet. Help write it.
Where it comes from
@markless/compiler raises this code. Source:
Read how to read a Markless error, or go back to all error codes.
