This repository has been archived by the owner on May 16, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 21
Argument of type 'this' is not assignable to parameter of type 'Construct'. #102
Comments
That is weird, you should be able to use whatever version since we added |
Yeah, I thought that was odd as well. |
Wait, the aws-bootstrap-kit/source/aws-bootstrap-kit/package.json Lines 58 to 65 in cfaf3f6
|
You can solve this by adding the following block to your package.json : "overrides": {
"aws-bootstrap-kit": {
"aws-cdk-lib": "2.27.0",
"constructs": "10.1.31"
}
} and make sure to pin prettier types in your dev deps (aws/aws-cdk#20319)
|
Ok, this worked. But this requires Another pro tip, it is possible to use references to the package versions you already have installed: "overrides": {
"aws-cdk-lib": "$aws-cdk-lib",
"constructs": "$constructs"
} |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
It looks like the
constructs
packages is outdated and I am getting the type conflicts with the latest version.My project:
The text was updated successfully, but these errors were encountered: