Duolith docs

Errors E0500 to E0599

E0510 Override of a variant a part does not have

Message part has no variant variant

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 variant's tokens, such as a primary button's background, are overridden by the variant's value under variants:. The part's specification lists them under look.variants.

How to fix it

Use one of the variants the message lists, such as primary.

In a terminal

duolith explain E0510

Mentioned in