Closed martijnimhoff closed 3 months ago
Cause was that target in tsconfig.json was set to es2020.
I have the same error, can you be detailed on how did you fixed it?
How do I solve this ? I am using pure javascript with typescript definition files. Have no tsconfig.json
I have the same error, can you be detailed on how did you fixed it?
In my tsconfig.json, I changed the target to es2022
.
How do I solve this ? I am using pure javascript with typescript definition files. Have no tsconfig.json
Are you building a library yourself? How does this setup work?
target es2022 solved it
tsc ./src/index.d.ts --module commonjs --target es2022 --noEmit true --strict true --esModuleInterop true
I use tsc to check that my typescript definitions are correct: https://github.com/alfateam/rdb/blob/master/package.json#L44
Software versions
Problem description When I install this library in my project. I'm getting the following type error in the library:
Expected behavior It looks like AggregateError should be available, but it is not found. I can't reproduce this type error when just running the linter in the library itself.