Boris Tane
03/21/2022, 5:54 PMsst.Bucket
inside a class that extends cdk.Construct
I get the following error
new Bucket(_this_, "Bucket");
Type 'ConstructNode' is missing the following properties from type 'Node': _locked, _children, _context, _metadata, and 6 more.
here are the deps:
"devDependencies": {
"@aws-cdk/aws-iam": "^1.149.0",
"@aws-cdk/aws-ssm": "^1.149.0",
"@serverless-stack/cli": "0.69.2",
"@serverless-stack/resources": "0.69.2",
"@tsconfig/node14": "^1.0.1",
"@types/aws-lambda": "^8.10.70",
"@types/node": "<15.0.0",
"aws-cdk-lib": "2.15.0",
"typescript": "4.4.4"
}
any pointers please?Ross Coundon
03/21/2022, 5:58 PMaws-cdk-lib/aws-iam
and aws-cdk-lib/aws-ssm
Boris Tane
03/21/2022, 6:14 PMConstruct
, one in node_modules/constructs
and another in node_modules/@aws_cdk/core
and their node
property have different types: ConstructNode
and Node
Boris Tane
03/21/2022, 6:15 PMnode_modules/constructs
is version 10.0.91
node_modules/@aws_cdk/core
is version 1.149.0 and imports construct
version ^3.3.69Ross Coundon
03/21/2022, 6:28 PMBoris Tane
03/21/2022, 6:31 PM@aws-cdk/aws-xxx
to aws-cdk-lib/aws-xxx
and replace
import { Construct } from "@aws-cdk/core"
with
_import_ { Construct } _from_ "constructs"
thdxr
03/21/2022, 6:35 PMthdxr
03/21/2022, 6:36 PMBoris Tane
03/21/2022, 6:37 PMCristian Pallarés
03/22/2022, 10:35 AMRoss Coundon
03/22/2022, 10:44 AM