Node.js as of V22 supports running .ts files natively with --experimental-strip-types
flag.
I've got it working locally, was pretty straight forward to adjust my code, just need to follow a few rules here
In the AWS Lambda config I have added an environment variable NODE_OPTIONS
with --experimental-strip-types
and I've changed the runtime settings to handler.ts.handler
, but I get the same error as above.
I feel like it should work but just missing some link.