I’m getting the known error: ```Mismatched versio...
# help
a
I’m getting the known error:
Copy code
Mismatched versions of AWS CDK packages. Serverless Stack currently supports 2.7.0. Fix using:

  npm install @aws-cdk/aws-chatbot@2.7.0 @aws-cdk/aws-cloudwatch@2.7.0 @aws-cdk/aws-cloudwatch-actions@2.7.0 @aws-cdk/aws-sns@2.7.0 --save-exact

Learn more about it here — <https://github.com/serverless-stack/serverless-stack#cdk-version-mismatch>
but this error persists after running
npx sst add-cdk @aws-cdk/aws-chatbot@2.7.0 @aws-cdk/aws-cloudwatch@2.7.0 @aws-cdk/aws-cloudwatch-actions@2.7.0 @aws-cdk/aws-sns@2.7.0
which opens an interactive mode as these versions don’t exist. Does anyone have any ideas of how I can resolve this?
f
Hey @Adie Williams, you actually don’t need these packages. 1. remove them from ur
package.json
2. change ur import from:
Copy code
import * from "@aws-cdk/aws-chatbot"
to
Copy code
import * from "aws-cdk-lib/aws-chatbot"
Let me know if it works.
I will take a look at why the helper is printing out misleading messages.
a
Thanks @Frank this resolved the issue, turns out my VSCode was corrupted and I got incorrect errors when trying to use these imports initially 🤦‍♂️