Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

CDK v2 import table TS

import { TableV2 } from 'aws-cdk-lib/aws-dynamodb';
>>>
aws-cdk-lib/aws-dynamodb"' has no exported member named 'TableV2'. Did you mean 'Table'?

The documentation shows: TypeScript aws-cdk-lib » aws_dynamodb

and ‘aws-cdk-lib/aws_dynamodb’ is not recognized.

So how do I import TableV2?

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

Upgrade CDK to the latest version. The TableV2 construct was added as a new feature in v2.95.0.

Check your current CDK version with cdk --version.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading