Pkl should propably prevent this by raising a correct error 🤷♂️
@StefMa commented on GitHub (Jun 9, 2025):
Its because each module has a `output` property.
See https://pkl-lang.org/package-docs/pkl/current/base/Module#output
Basically you're not allowed to create a class named `output`.
Playground example
https://pkl-playground.vercel.app/?share=race-coal-show
Naming it `Output` however works. https://pkl-playground.vercel.app/?share=pick-push-manner
Pkl should propably prevent this by raising a correct error 🤷♂️
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Originally created by @kaihendry on GitHub (Jun 9, 2025).
Minimal Repro: https://github.com/kaihendry/pkl-env
@StefMa commented on GitHub (Jun 9, 2025):
Its because each module has a
outputproperty.See https://pkl-lang.org/package-docs/pkl/current/base/Module#output
Basically you're not allowed to create a class named
output.Playground example
https://pkl-playground.vercel.app/?share=race-coal-show
Naming it
Outputhowever works. https://pkl-playground.vercel.app/?share=pick-push-mannerPkl should propably prevent this by raising a correct error 🤷♂️
@kaihendry commented on GitHub (Jun 9, 2025):
Thank you! I have another question over here: https://github.com/apple/pkl/discussions/1096