I've uploaded some sample code. It doesn't offer t...
# general
q
I've uploaded some sample code. It doesn't offer to create the Kubernetes cluster, though I do not know why. It works if I copy the code block into
index.ts
w
I don't seem to have access to this - but happy to take a look if you can share.
q
Its public now. Sorry about that
w
Ahh - this is a subtle (and honestly, a bit unfortunate) TypeScript gotcha - if you import something but don't reference it - TypeScript will (sometimes?) elide the
require
in it's code generation. If you reference the imported k8sCluster (for example, exporting one of it's output properties), it should get included.
😂 1
q
Ah. That is unfortunate, but I'm glad it wasn't a typo 🤣
Thank you for your help, @white-balloon-205