<@U01JVDKASAC> <@U01MV4U2EV9> I noticed SST is now...
# help
d
@Frank @thdxr I noticed SST is now using `“constructs”: “^10.0.29",` (in CDK v2) instead of the previous
cdk.Construct
is there a simple explanation for that? Should SST / construct authors being doing the same?
Also seeing these in our migration attempt…
f
Hey @Dan Van Brunt, yeah, in CDK v2.0,
Construct
was extracted out from the CDK’s core package
aws-cdk-lib
and now lives in a separate package. You can read more about it here (the 4th bullet point) https://docs.aws.amazon.com/cdk/v2/guide/migrating-v2.html
Reason being they want to share
Construct
with cdk-k8s, cdk-terraform and other CDK related projects
d
ah… that makes sense @Frank. Any idea why we’re still getting those linting errors above in the photos?
f
I ran into a similar problem when updating SST to CDK when I still had CDK v1 dependencies in my app. That depends on
construct@3.*
.
can you look at
node_modules/Constructs/package.json
and see which version it is?
d
I think that is it. It’s showing something using v3 of constructs… just in the process of tracking down “what” is. Also, commenting out our construct lib, as I think it also sometimes leads to issues with yarn link etc.
this was it. Thanks Frank! Fixed.