Duolith docs

Errors while checking a page

E0126 Piece outside a component

Message <piece> must sit directly inside a placed component

Why

A <piece name="..."> gives children to the named slot of the component it sits in, so it only means something as a direct child of a placed component.

How to fix it

Move it straight inside the component it fills, such as <ListRow><piece name="leading">...</piece></ListRow>.

In a terminal

duolith explain E0126

Mentioned in