Error codesState

A shared() method cannot be called from another module yet (<shared>)

MARKLESS_SHARED_METHOD_CROSS_MODULEerrorMarkless raises it while it builds your .tsrx files.

The message

MARKLESS_SHARED_METHOD_CROSS_MODULE: The emitted <kind> module for <symbolId> was built by copying the body of <shared> out of <files> into this file. <where> <what>
Calling a shared() method compiles to copying the method's authored body into the calling handler, because no shared instance exists inside a handler module to call the method on. Copying text moves the statements but not the scope they were written in, so the copy only means what the author wrote while the definition and the call are in one file. Across files the definition module's imports and module-scope declarations do not travel, and the calling module's imports are matched against the copied text by name, which can capture a same-named binding that means something else entirely. Both failures are invisible until the gesture runs, so this build refuses instead.
Call <value> from a part the family itself publishes, in <files>, and compose that part here. Inside its own module the same call compiles and runs today.
https://markless.dev/errors/MARKLESS_SHARED_METHOD_CROSS_MODULE

Words in angle brackets change from case to case.

Why

Calling a shared() method compiles to copying the method's authored body into the calling handler, because no shared instance exists inside a handler module to call the method on. Copying text moves the statements but not the scope they were written in, so the copy only means what the author wrote while the definition and the call are in one file. Across files the definition module's imports and module-scope declarations do not travel, and the calling module's imports are matched against the copied text by name, which can capture a same-named binding that means something else entirely. Both failures are invisible until the gesture runs, so this build refuses instead.

Fix

Call <value> from a part the family itself publishes, in <files>, and compose that part here. Inside its own module the same call compiles and runs today.

Where Markless raises it

All error codes