Closed moltar closed 2 years ago
That is weird, you should be able to use whatever version since we added ^
in peer deps: https://github.com/awslabs/aws-bootstrap-kit/pull/77/files
Yeah, I thought that was odd as well.
Wait, the dependencies
value is still fixed though!
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 (https://github.com/aws/aws-cdk/issues/20319)
"@types/prettier": "2.6.0"
Ok, this worked. But this requires npm@8
. This may not affect many people, but still good to know.
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"
}
It looks like the
constructs
packages is outdated and I am getting the type conflicts with the latest version.My project: