Duolith docs

Errors E0500 to E0599

E0514 Environment value that is not defined

Message name is not defined in any environment file

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

Why

environment() returns the values the build reads from duolith.env, duolith.<mode>.env and the DUOLITH_PUBLIC_* process environment, typed from what they hold. A name none of them defines would be undefined when the app runs, so the build fails.

How to fix it

Add DUOLITH_PUBLIC_NAME=... to duolith.env, or name a value it defines.

In a terminal

duolith explain E0514

Mentioned in