angular / angularfire

Angular + Firebase = ❤️
https://firebaseopensource.com/projects/angular/angularfire2
MIT License
7.67k stars 2.19k forks source link

Angular 11 released #2651

Closed rkchaudhary4 closed 3 years ago

rkchaudhary4 commented 3 years ago

Angular version 11 has been released but the latest version of angularfire is not compatible with it. Following dependency errors are there: Package "@angular/fire" has an incompatible peer dependency to "@angular/common" (requires "^9.0.0 || ^10.0.0", would install "11.0.0") Package "@angular/fire" has an incompatible peer dependency to "@angular/core" (requires "^9.0.0 || ^10.0.0", would install "11.0.0") Package "@angular/fire" has an incompatible peer dependency to "@angular/platform-browser" (requires "^9.0.0 || ^10.0.0", would install "11.0.0") Package "@angular/fire" has an incompatible peer dependency to "@angular/platform-browser-dynamic" (requires "^9.0.0 || ^10.0.0", would install "11.0.0") Kindly upgrade angularfire to support the new version of angular.

Splaktar commented 3 years ago

I believe that this is already being worked on. I don't see these when I use 6.1.0-rc.1.

Splaktar commented 3 years ago

Also after updating to Angular v11, I was getting an error with ng deploy due to some deprecated Workspace APIs being removed in the CLI devkit.

An unhandled exception occurred: Cannot read property 'Workspace' of undefined

That is resolved in 6.1.0-rc.1 via PR https://github.com/angular/angularfire/pull/2647.

aram-m commented 3 years ago

Hey i got this after v11 update node_modules/@angular/fire/storage/observable/fromTask.d.ts:3:83 - error TS2694: Namespace 'firebase' has no exported member 'default'.

jamesdaniels commented 3 years ago

Per the compatibility table, please upgrade to 6.1.0-rc for now. We'll release to stable once we've had enough testing on Angular 11 to be comfortable.

I'd also suggest you upgrade to Firebase v8.0.1+, if you haven't yet.

jamesdaniels commented 3 years ago

Closing with work-around, pinning since a lot of folk will probably run into this.

jamesdaniels commented 3 years ago

6.1.0 is out, unpinning.