Error codesState

A shared() has no scope

MARKLESS_SHARED_FAMILY_SCOPE_IMPLICITwarningMarkless raises it while it builds your .tsrx files.

The message

MARKLESS_SHARED_FAMILY_SCOPE_IMPLICIT: <length> components in this module resolve shared() "<definitionName>" (<components>), which is the shape of a widget family, but no scope is declared so it has one copy for the whole app.
An app-scoped family gives every widget of that family on one page the same graph, so two of them move together. That is a real choice, but silence makes it a surprise.
Add { scope: 'subtree' } to give each rendered widget its own graph.
https://markless.dev/errors/MARKLESS_SHARED_FAMILY_SCOPE_IMPLICIT

Words in angle brackets change from case to case.

Why

Several components in one file use the same shared() value, and it has no scope. So every copy of the widget on the page shares one value.

Fix

Pass { scope: 'subtree' } to give each widget its own value. Pass { scope: 'app' } if one value for the whole app is what you want.

If you accept the warning on purpose, put this comment on the line above it:

// markless-allow MARKLESS_SHARED_FAMILY_SCOPE_IMPLICIT: the reason you accept it
Where Markless raises it

All error codes