–– Pkl Error ––
Object of type `objectCannotHaveElement#Foo` cannot have an element.

xx | (nestedStructure.propertyInNestedStructure) {
     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
at objectCannotHaveElement#foo (file:///$snippetsDir/input/errors/objectCannotHaveElement.pkl)

Only objects of type `Listing` and `Dynamic` can have elements. If you did not mean to add an element, you probably got the syntax wrong. For example, `obj { name }` adds an element, whereas `obj { name = "Pigeon" }` sets a property.

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