I wrote functions in Async/Await manner for ticket sidebar app. When I tried to pack the app it throws me an error saying Parsing error: Unexpected token function. In Freshworks Huddle Q&A I received a response saying Async/Await is supported in FDK. Does FDK support Async/Await?
I would also like to join in the request for async/await pattern. I come from a C# background where it is the preferred pattern and working with promises is total garbage especially with the 5 callback limit.
I too have run into this. I spent 2 days writing an app and then found when it won’t work when I run fdk pack.
Like Nick above, I really DO NOT want to author in the nested promise callback pattern - its really hard to follow. Async away is far more comprehensible.
Its interesting that it works just fine when authoring locally (with ?dev=true on our freshworks-crm site).
It would be nice to have some ETA on when we can hope to have this supported. I need to decide if I’m going to go thru the headache of rewriting my code - uggh!!