Duolith docs

Errors while checking a page

E0151 Anchored overlay without an anchor

Message a kind overlay needs an anchor

Words in italics are filled in when the compiler reports it, such as the element's name or the list of known ones.

Why

A popover, menu, listbox or tooltip is placed next to the element it belongs to, so it must say which one.

How to fix it

Give that element an id and write anchor=id on the overlay, as <view id=id>...</view><overlay kind="menu" anchor=id>.

In a terminal

duolith explain E0151

Mentioned in