Duolith docs

Errors E0500 to E0599

E0561 Pack rule names something that does not exist

Message pack/pack.yaml: problem

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 pack's rules are checked against what the app has, so a typing mistake cannot turn a rule into one that never fires: every class must be a utility (a pattern with * must match at least one), every token must be in the theme, every part a kit part, every element and attribute one the language has, every lint rule a built-in rule, every component a rule says to use instead must exist, every scope and owns pattern must match a file, and every code a rule says enforces it must be in this catalogue. A pack rule id set in duolith.yaml must be a rule of an installed pack.

How to fix it

Correct the name; the message suggests the closest one. To add a token, add it to theme.yaml first.

In a terminal

duolith explain E0561

Mentioned in