Hi all. I getting this error: ```TypeError: this.g...
# typescript
n
Hi all. I getting this error:
Copy code
TypeError: this.getData is not a function
        at new Vpc (C:\projects\infra\node_modules\@pulumi\ec2\vpc.ts:276:27)
        at Function.fromExistingIds (C:\projects\infra\node_modules\@pulumi\ec2\vpc.ts:367:16)
trying to execute
const vpc = awsx.ec2.Vpc.fromExistingIds("primary-vpc", { vpcId: "vpc-xxx" }, { provider: provider });
package.json is:
Copy code
{
  "name": "aws-typescript",
  "devDependencies": {
    "@types/node": "^12.12.25"
  },
  "dependencies": {
    "@pulumi/aws": "1.18.0",
    "@pulumi/awsx": "0.19.0",
    "@pulumi/pulumi": "1.8.1"
  }
}
Could someone help with this?
node version
v12.14.1
pulumi version
v1.9.0
The method works fine with package.json:
Copy code
{
  "name": "aws-typescript",
  "devDependencies": {
    "@types/node": "^12.12.6"
  },
  "dependencies": {
    "@pulumi/aws": "^1.7.0",
    "@pulumi/awsx": "^0.18.13",
    "@pulumi/pulumi": "^1.4.1"
  }
}
But I need more recent versions to pass VPC to a Fargate service.
The latest stable version of awsx on which the methods works is
0.18.14
on
0.19.x
it doesn't work
w
That sounds like a bug - the error message is related to something which did change in awsx 0.19.0. Could you open an issue and we’ll look into it?
n