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

xx | (nestedStructure.propertyInNestedStructure) { "Hello world!!!" }
     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
at objectCannotHaveElement2#foo2 (file:///$snippetsDir/input/errors/objectCannotHaveElement2.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 | renderer.renderDocument(value)
      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
at pkl.base#Module.output.text (pkl:base)

xxx | if (renderer is BytesRenderer) renderer.renderDocument(value) else text.encodeToBytes("UTF-8")
                                                                         ^^^^
at pkl.base#Module.output.bytes (pkl:base)
