Rudi
05/25/2022, 6:16 PM===============
Deploying app
===============
/home/rudi/projects/notes/node_modules/aws-cdk-lib/aws-autoscaling/lib/auto-scaling-group.d.ts (672,15): Cannot find name 'Set'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2015' or later.
670. */
671. _metrics: Set<GroupMetric>;
672. constructor(...metrics: GroupMetric[]);
Deploying stacks
Rudi
05/25/2022, 6:17 PMRudi
05/25/2022, 6:24 PMDebug session started. Listening for requests...
a7ddea91-1cdf-4051-b999-47db3f51ae94 REQUEST rudijs-notes-ApiStack-ApiLambdaPOSTnotes3B067E1B-0MSxa9UmkbFo [functions/create.main] invoked by API POST /notes
a7ddea91-1cdf-4051-b999-47db3f51ae94 RESPONSE {"statusCode":200,"body":"{\"userId\":\"123\",\"noteId\":\"905f1a60-dc57-11ec-bd09-118ca41ff572\",\"content\":\"Hello World\",\"attachment\"... 39 more characters"}
Stacks: Building changes...
Stacks: Synthesizing changes...
/home/rudi/projects/notes/node_modules/aws-cdk-lib/aws-autoscaling/lib/auto-scaling-group.d.ts (672,15): Cannot find name 'Set'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2015' or later.
670. */
671. _metrics: Set<GroupMetric>;
672. constructor(...metrics: GroupMetric[]);
Stacks: There are new infrastructure changes. Press ENTER to redeploy.
thdxr
05/25/2022, 6:24 PMthdxr
05/25/2022, 6:25 PMthdxr
05/25/2022, 6:25 PMRudi
05/25/2022, 6:26 PMthdxr
05/25/2022, 6:26 PMRudi
05/25/2022, 6:26 PMthdxr
05/25/2022, 6:26 PMRudi
05/25/2022, 6:27 PMthdxr
05/25/2022, 6:27 PMRudi
05/25/2022, 6:27 PMthdxr
05/25/2022, 6:28 PMKlaus
05/25/2022, 8:59 PM:any
type or // @ts-ignore
are quite useful in some situations, especially in the beginning
https://fettblog.eu/how-not-to-learn-typescript/ point 4 is a great tip and https://austingil.com/typescript-the-easy-way/ is also worth reading.