angular / angular/angularfire

Support firebase v12

Open
#3,666 10 comments 7 reactions 0 assignees View on GitHub
comp: core triaged: keep-open type: feature version: current (v17+)
Dominant language
TypeScript
Stars
7.8k
Forks
2.2k
Avg merge
22h 28m
Merged PRs (30d)
6

Description

`firebase` `12.0.0` was recently released:
- https://firebase.google.com/support/release-notes/js
- https://github.com/firebase/firebase-js-sdk/releases/tag/firebase%4012.0.0

AngularFire `20.0.1` is not compatible with it; produces compilation errors such as:
```dart
✘ [ERROR] TS2345:
Argument of type 'import("node_modules/@angular/fire/node_modules/@firebase/storage/dist/storage-public").UploadTask'
is not assignable to parameter of type 'import("node_modules/@firebase/storage/dist/storage-public").UploadTask'.
Types of property 'catch' are incompatible.
```

Contributor guide

Open the contributing guide

Research direction

Start with the Firebase JavaScript SDK v12 release notes and AngularFire 20.0.1's dependency and build setup, then reproduce the reported TS2345 UploadTask mismatch. Trace the duplicated @firebase/storage types involved in the compilation error and verify that AngularFire compiles successfully with firebase 12.0.0.

Written by the indexing model from the issue text.

Assessment

Tech stack
angular, firebase, typescript
Domain
cloud
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.