E0514 Environment value that is not defined
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