Could not compile sample code due to ECMAScript compatibility issues. #2788
-
Hey, I'm just looking the aws powertools, specially the logger, and I ran into an issue when attempting to compile a project. Steps to reproduce:
I am getting the error: Private identifiers are only available when targeting ECMAScript 2015 and higher. node_modules/@aws-lambda-powertools/logger/lib/cjs/formatter/LogFormatter.d.ts:13 I have setup the target on the tsconfig to be "target": "ES2021" with no luck whatsoever. Has anyone else experienced this issue? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hi @DavidSantacruzR, could you please copy the content of the Thank you! |
Beta Was this translation helpful? Give feedback.
I have tried to reproduce the issue you described and I was not able to.
Here you can see my setup: https://github.com/dreamorosi/ecmatest