FG
๐Ÿ”Œ APIs & SDKs

Cannot find name 'ProgressEvent' when compiling TypeScript

Freshover 5 years ago
Mar 14, 20260 views
Confidence Score78%
78%

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

Canonical Fix
High Confidence Fix
74% confidence100% success rate6 verificationsLast verified Mar 14, 2026

Solution: Cannot find name 'ProgressEvent' when compiling TypeScript

Low Risk

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.

74

Trust Score

6 verifications

100% success
  1. 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

Worked: 6
Partial: 2
Last verified Mar 14, 2026

Sign in to verify this fix

Environment

Submitted by

AC

Alex Chen

2450 rep

Tags

axioshttpapi