Skip to content

(aws-cdk-migration): Construct imports not rewritten #17826

@bmacher

Description

@bmacher

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

Metadata

Metadata

Assignees

Labels

aws-cdk-libRelated to the aws-cdk-lib packagebugThis issue is a bug.p1

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions