Hi, some general feedback after updating today to ...
# help
r
Hi, some general feedback after updating today to v 1.2.4 - I see this on deployment to a local dev env (non-prod)
Copy code
===============
 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
Everything deploys OK, but I do see that console output
More FYI as I work through the guide ..
Copy code
Debug 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.
t
hm that's odd
haven't seen this myself yet
ah you're using js right?
r
Yep just following along the guide in JS - I plan to do it again in TS when JS complete
t
have a fix for this going to push soon
r
Cool .. I'll keep posting feedback if anything pops up.
t
ty
r
it's all working, just those warnings looks like
t
I don't use the JS version of our setup so it gets a little less attention
r
For sure TS is the way to go, but I wanted to just follow what's there as I'm a level 1 beginner with SST
t
yeah makes sense and is helpful for us!
k
@Rudi it's always good to follow what you are comfortable with. TS has it's advantages though, as it is more self documenting and warns early about potential errors. Some other bits of it can be annoying though ( especially if you try to build your own types or are just starting). Using the
: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.