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
Axios 1.2.0 requires ProgressEvent DOM type #5297
Comments
Same issue here. Typescript 4.9.3, Axios 1.2.0 |
I fixed this by using this in my package.json and npm i:
|
The only thing that helped, except using DOM types, was downgrading back to Axios v0.27.2
Edit: added |
For us, Axios 1.1.3 does not expose this issue so you should be able to at least do the switch to 1.x. |
|
Thanks, @bradleymackey for the workaround. A fix has been created, but not released yet. Until then, this workaround works. |
Looks like 1.2.1 contains this fix! https://github.com/axios/axios/releases/tag/v1.2.1 |
Describe the bug
Seems like #5227 re-introduced #3219.
When attempting to compile with TypeScript without DOM types, compilation fails:
To Reproduce
Code snippet
Expected behavior
Compiles without DOM types.
Axios Version
1.2.0
Adapter Version
No response
Browser
No response
Browser Version
No response
Node.js Version
No response
OS
No response
Additional Library Versions
typescript: 4.9.3
Additional context/Screenshots
No response
The text was updated successfully, but these errors were encountered: