Error codesState

A subtree shared() widget is split across files

MARKLESS_SHARED_SUBTREE_SPLITerrorMarkless raises it while it builds your .tsrx files.

The message

MARKLESS_SHARED_SUBTREE_SPLIT: "<childName>" from <childSource> starts its own copy of the subtree value "<definitionName>" inside "<parentName>", so one widget would hold two copies.
A subtree value defined in a file with no component of its own is rooted separately in each file that uses it, so a part in another file starts a copy instead of joining the widget it is rendered in.
Move "<childName>" into the file of "<parentName>", so both are parts of one widget.
https://markless.dev/errors/MARKLESS_SHARED_SUBTREE_SPLIT

Words in angle brackets change from case to case.

Why

A subtree value defined in a file with no component of its own is rooted separately in each file that uses it. A part rendered from another file therefore starts its own copy instead of joining the widget around it.

Fix

Move the part into the file of the component that renders it, so both are parts of one widget. For example, a Panel that Tabs rendered from panel.tsrx moves into tabs-ui.tsrx:

// tabs-ui.tsrximport { tabs } from './tabs.tsrx';export function Tabs() @{	<div><button onClick={() => (tabs.open = tabs.open + 1)}>Next</button><Panel /></div>}function Panel() @{	<p>open {tabs.open}</p>}
Where Markless raises it

All error codes

Button sounds are from Josh Comeau's Button Sounds library.