Typescript workshop import error in lib/hitcounter.ts
Osama-Rashid opened this issue · 2 comments
What is the problem?
In typescript's main workshop, there is an import error in the file hitcounter.ts under the lib folder. Import of Construct class is being done from constructs however it should be done from @aws-cdk/core (the former is causing the below mentioned error).
Reproduction Steps
Following the workshop instructions, if you use the import command: import { Construct } from 'constructs', then it should reproduce the error.
Verbose Log
No response
CDK CLI Version
1.123.0 (build fad855e)
Section
Typescript
Browser
Chrome
Language
TypeScript
Other information
No response
Our workshop was updated for CDK V2. The core
method you're describing is for V1, while importing for constructs
is for v2. Please start the workshop over from V2 and see if you still run into issue here.
⚠️ COMMENT VISIBILITY WARNING⚠️
Comments on closed issues are hard for our team to see.
If you need more assistance, please either tag a team member or open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.