I just updated, and started seeing new ts errors: ...
# general
I just updated, and started seeing new ts errors:
Copy code
The inferred type of 'clusterName' cannot be named without a reference to '@pulumi/kubernetes/node_modules/@pulumi/pulumi'. This is likely not portable. A type annotation is necessary. ts(2742)
error originates on the last line:
Copy code
import * as pulumi from '@pulumi/pulumi'
import * as gcp from '@pulumi/gcp'
export const cluster = new gcp.container.Cluster(name, clusterArgs)

export const clusterName = cluster.name
Copy code
You can address this by inserting a
: pulumi.Output<string>
in the last line. However, the root of the problem looks like you have two different versions of
perhaps. Can you share your yarn.lock or package-lock.json? Are you also using the kubernetes package? If so, what version?
I used ncu to update, so should have the latest. I’ll get that info for you
Copy code
oh, I see the nested node_modules there, missed that on first glance
I’ll rebuild and see if it goes away
So it does look like you have two copies of Pulumi/Pulumi - at 0.17.1 and 0.17.2. Could you try
yarn dedupe
and see if that fixes things for you?
rebuild should clear that, one moment
yes, rebuild solved it, thanks @white-balloon-205