MARKLESS_SHARED_SEED_UNRESOLVED_VALUE
a shared() seed value has nothing to bind to: 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_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_VALUE
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.
