Duolith docs

Errors E0500 to E0599

E0595 Unknown name in a domain file

Message there is no kind called `name`

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

Why

Every name a domain file writes is a reference the build looks up: a shape, a field (Shape.field), another domain's shape (posts.Post), an operation's input (writePost.input), a rule in allow:, a service in needs:, a failure in fails:, an event, a workflow and its steps, a store, a command. A name that does not resolve fails the build, with the nearest real name suggested, so a typo or a rename is caught where it is written.

How to fix it

Use the name the help suggests, or define what you meant to name: a shape under shapes:, a rule or service under domains: in duolith.yaml.

In a terminal

duolith explain E0595

Mentioned in