Error codesState

Shared() scope must be valid

MARKLESS_SHARED_SCOPE_INVALIDerrorMarkless raises it while it builds your .tsrx files.

The message

MARKLESS_SHARED_SCOPE_INVALID: Unknown shared() scope <valueText>. Valid scopes are <valid>.
shared() scope controls how long the data lives and who shares it. Silently dropping an unknown scope would change whether one app, one container, or one rendered subtree owns the data.
Use `shared(factory)` for one copy per app, `shared(factory, { scope: "container" })` for one copy per container, or `shared(factory, { scope: "subtree" })` for one copy per rendered subtree.
MARKLESS_SHARED_SCOPE_INVALID: shared() scope must be a string literal. Valid scopes are <valid>.
shared() scope controls how long the data lives and who shares it. Silently dropping an unknown scope would change whether one app, one container, or one rendered subtree owns the data.
Use `shared(factory)` for one copy per app, `shared(factory, { scope: "container" })` for one copy per container, or `shared(factory, { scope: "subtree" })` for one copy per rendered subtree.
https://markless.dev/errors/MARKLESS_SHARED_SCOPE_INVALID

Words in angle brackets change from case to case.

Why

shared() scope controls how long the data lives and who shares it. Silently dropping an unknown scope would change whether one app, one container, or one rendered subtree owns the data.

Fix

Use `shared(factory)` for one copy per app, `shared(factory, { scope: "container" })` for one copy per container, or `shared(factory, { scope: "subtree" })` for one copy per rendered subtree.

Where Markless raises it

All error codes