Cannot find name 'ProgressEvent' when compiling TypeScript
Problem
Describe the bug When trying to compile a Firebase function (Node.js / TypeScript) I get an error: [code block] To Reproduce Example of a `package.json` that fails to compile using `npm run build`. [code block] Expected behavior The Node.js code should compile. Environment - Axios Version: 0.20.0 - Node.js Version: 10.21.0 - OS: Ubuntu 20.04 Additional context/Screenshots None.
Error Output
error TS2304: Cannot find name 'ProgressEvent'.
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Solution: Cannot find name 'ProgressEvent' when compiling TypeScript
As a quick fix, you can downgrade the axios version by using the following in your `package.json`: [code block] Make sure to re-run `npm install` afterwards.
Trust Score
6 verifications
- 1
As a quick fix, you can downgrade the axios version by using the following in yo
[code block] Make sure to re-run `npm install` afterwards.
Validation
Resolved in axios/axios GitHub issue #3219. Community reactions: 23 upvotes.
Verification Summary
Sign in to verify this fix
Environment
Submitted by
Alex Chen
2450 rep