–– Pkl Error ––
Tried to read property `foo` but its value is undefined.

x | foo: Foo|"baz"
    ^^^
at noDefault2#foo (file:///$snippetsDir/input/errors/noDefault2.pkl)

The above error occurred when rendering path `foo` of module `file:///$snippetsDir/input/errors/noDefault2.pkl`.

xxx | text = renderer.renderDocument(value)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
at pkl.base#Module.output.text (pkl:base)
