A shared() seed value has nothing to bind to
The message
MARKLESS_SHARED_SEED_UNRESOLVED_VALUE: The state() seed for "<fieldName>" in shared() definition "<definitionName>" is `<valueSource>`, and "<freeName>" is not a literal, a module-scope declaration of this file, an import, or a global.
A factory seed is re-evaluated in a module of its own, carrying only this file's module scope and imports. A name that is none of those has nothing to bind to there, so the seed throws a ReferenceError and the whole shape loses its fields — which then reads as an error at every consumer of the shape rather than here.
Seed "<fieldName>" with a literal, or with a module-scope `const` of this file that "<freeName>" can resolve to.
https://markless.dev/errors/MARKLESS_SHARED_SEED_UNRESOLVED_VALUEWords in angle brackets change from case to case.
Why
A factory seed is re-evaluated in a module of its own, carrying only this file's module scope and imports. A name that is none of those has nothing to bind to there, so the seed throws a ReferenceError and the whole shape loses its fields — which then reads as an error at every consumer of the shape rather than here.
Fix
Seed "<fieldName>" with a literal, or with a module-scope `const` of this file that "<freeName>" can resolve to.