Recently, after updating my project dependencies, I encountered the following error:
ERROR in src/app/services/auth/auth.service.ts(19,5): error TS2322: Type 'FirebaseAuth' is not assignable to type 'Auth'. Types of property 'app' are incompatible. Type 'FirebaseApp' is not assignable to type 'App'. Property 'messaging' is missing in type 'FirebaseApp'.
Screenshot of the error https://i.sstatic.net/Arx6f.png
The code at line 19.5 looks like this:
this.auth = angularFireAuth.auth;
Screenshot of the code https://i.sstatic.net/cLQQV.png
List of dependencies:
"dependencies": {
"@agm/core": "^1.0.0-beta.2",
"@angular/cdk": "^5.2.2",
...
"zone.js": "^0.8.20"
},
Any ideas on what might be causing this issue? Thank you!