Shared() scope must be valid
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_INVALIDWords 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.