Hi. I have a aws.lambda.CallbackFunction that uses...
# typescript
k
Hi. I have a aws.lambda.CallbackFunction that uses some ES2018 feature. Pulumi is giving me:
Copy code
error: Running program '/home/shana/programming/tsuru-cloud/aws-cluster/infra/index.ts' failed with an unhandled exception:
    TSError: ⨯ Unable to compile TypeScript:
    ordercache_generation.ts(73,34): error TS1503: Named capturing groups are only available when targeting 'ES2018' or later.
    ordercache_generation.ts(112,42): error TS1503: Named capturing groups are only available when targeting 'ES2018' or later.
I can't figure out how to convince it that it's fine. It used to work for a while but I updated some things (to try and fix a different problem) and it appears to have stopped compiling...? I'm not sure what I broke, sadly. Google gives some partial hits in this Slack channel but seems results from 3+ months ago are not viewable/searchable so that's not great. Is this supposed to just work or do I need some setting or was it never supposed to work?