DEV Community

Upgrading to AngularFire 6 with Angular 9

Sreekanth Reddy Pathi Reddy on April 08, 2020

Angular 9 With Angular 9 release, now it's time to upgrade our Angular project and enjoy the power of Ivy. It is also important not to f...
Collapse
 
kwhjvdkamp profile image
Koen (K.W.H.J.) van der Kamp

Hoi (that's Dutch for Hi) Sreekanth Reddy Pathi Reddy,

Thanks for your sharing these State-of-the-Art changes. May I add one small contribution? I guess you do allow me, because you are XTeam? and it saved me some time to figure out, what to choose (and understand what service is needed).

In the second picturebox (the version 6 one), the line
Promise typed signIn(...)-method, the
Entity 'auth.UserCredentials' needs an import statement:
import { auth } from 'firebase'.
I would suggest to add that import as well in this picturebox, because their is another one to choose (which isn't obviously not the right one)!

Are you connected to XTeam? I guess you are. I just signed up last week to become involved as wel however pretty busy organising some spare seconds to go to the whole process.
So do not blame me for not having a template yet!

With Regards,
Koen

Collapse
 
sreekanth_2108 profile image
Sreekanth Reddy Pathi Reddy

Hi K.W.H.J. van der Kamp,

Thanks for the suggestion. I am not sure about the other import but I added the import statement as you suggested. Glad to know this helped you.

Collapse
 
janfinn1 profile image
janfinn1

In attempting to update using the command:
ng update @angular/core @angular/cli

It failed with the following error:

Your global Angular CLI version (9.1.9) is greater than your local
version (9.0.0-rc.7). The local Angular CLI version is used.

To disable this warning use "ng config -g cli.warnings.versionMismatch false".
The installed Angular CLI version is older than the latest stable version.
Installing a temporary version to perform the update.
Installing packages for tooling via npm.
Installed packages for tooling via npm.
Using package manager: 'npm'
Collecting installed dependencies...
Found 33 dependencies.
Fetching dependency metadata from registry...
Package '@angular/core' is already up to date.
Package "codelyzer" has an incompatible peer dependency to "@angular/compiler" (requires ">=2.3.1 <8.0.0 || >7.0.0-beta <8.0.0" (extended), would install "9.1.11").
✖ Migration failed: Incompatible peer dependencies found.
Peer dependency warnings when installing dependencies means that those dependencies might not work correctly together.
You can use the '--force' option to ignore incompatible peer dependencies and instead address these warnings later.
See "/tmp/ng-soyA2A/angular-errors.log" for further details.

Collapse
 
allenjo46278573 profile image
Allen Joseph

is the new version of Angularfire compatible with rxjs-6??