I just updated, and started seeing new ts errors: ...
# general
i
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
@pulumi/pulumi@0.17.2
@pulumi/gcp@0.18.0
typescript@3.3.3333
w
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
@pulumi/Pulumi
perhaps. Can you share your yarn.lock or package-lock.json? Are you also using the kubernetes package? If so, what version?
i
I used ncu to update, so should have the latest. I’ll get that info for you
Copy code
@pulumi/kubernetes@0.21.1
oh, I see the nested node_modules there, missed that on first glance
I’ll rebuild and see if it goes away
w
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?
i
rebuild should clear that, one moment
yes, rebuild solved it, thanks @white-balloon-205