-
Notifications
You must be signed in to change notification settings - Fork 4.5k
(aws-cdk-migration): Construct imports not rewritten #17826
Copy link
Copy link
Closed
Labels
aws-cdk-libRelated to the aws-cdk-lib packageRelated to the aws-cdk-lib packagebugThis issue is a bug.This issue is a bug.p1
Description
What is the problem?
When migrating CDK imports with aws-cdk-migration then the Construct class is imported from aws-cdk-lib. However, aws-cdk-lib does not export Construct but constructs does.
Reproduction Steps
import { App, Construct, Stage } from '@aws-cdk/core';What did you expect to happen?
import { App, Stage } from 'aws-cdk-lib';
import { Construct } from 'constructs';What actually happened?
import { App, Construct, Stage } from 'aws-cdk-lib';CDK CLI Version
2.0.0
Framework Version
2.0.0
Node.js Version
14.16.1
OS
macOS
Language
Typescript
Language Version
^4.3.2
Other information
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
aws-cdk-libRelated to the aws-cdk-lib packageRelated to the aws-cdk-lib packagebugThis issue is a bug.This issue is a bug.p1