Open akazakou-incomm opened 3 years ago
On try to deploy stack with cdktf tool based on TypeScript language it generates error:
Version: 1.20 Example
import { Rancher2Provider, AppV2 } from '../.gen/providers/rancher2' class RancherStack extends TerraformStack { constructor (scope: Construct, name: string) { super(scope, name); new Rancher2Provider(this, 'Rancher', { apiUrl: `https://rancher.example`, accessKey: 'admin', secretKey: 'password' }); const monitoring = new AppV2(this, `monitoring`, { clusterId: 'local', name: 'rancher-monitoring', namespace: 'cattle-monitoring-system', repoName: 'rancher-charts', chartName: 'rancher-monitoring', chartVersion: '9.4.203', }) } }
Error output:
npm run deploy --scripts-prepend-node-path=auto my-stack-id > my-stack-id@1.0.0 deploy > cdktf deploy "my-stack-id" .gen/providers/rancher2/rancher2-provider.ts:201:17 - error TS2339: Property 'getNumberAttribute' does not exist on type 'Rancher2Provider'. 201 return this.getNumberAttribute('retries'); ~~~~~~~~~~~~~~~~~~ Found 1 error.
The same for 1.21 version
On try to deploy stack with cdktf tool based on TypeScript language it generates error:
Version: 1.20 Example
Error output: