-
Notifications
You must be signed in to change notification settings - Fork 438
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot find name 'AggregateError'. #1612
Comments
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 ? |
In my tsconfig.json, I changed the target to
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: |
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.
The text was updated successfully, but these errors were encountered: