You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Documentation for @angular/fire v6 seems outdated or even more breaking changes #2310
You only return the auth (return ɵlazySDKProxy(this, auth, zone);)
So is it correct to write this.afAuth.signOut(); ?
But then everything is a promise. In v5 I could write: "const current = this.afAuth.auth.currentUser;", but in v6 it's a promise -> "const current = await this.afAuth.auth.currentUser"
changed the title [-]Documentation for @angular/fire v6[/-][+]Documentation for @angular/fire v6 seems outdated or even more breaking changes[/+]on Feb 4, 2020
You must import 'firebase/database' before using AngularFireDatabase
You must import 'firebase/firestore' before using AngularFireStore
This happens runtime
Why?
WHat you describe is mentioned in the changelog ("AngularFirestoreModule no longer imports firebase/firestore on it's own to remain side-effect free, you'll need to import 'firebase/firestore' on your own")
Well I figured out why. I didn't use those modules eg database. But I had
an unused import of storage and that made this runtime error.
Why would this be a runtime error ? Sorry I don't understand it.
So to repeat. It complained about the need to import database and Firestore
as seen before without me using those at any place in my app. Only an
unused import of storage. Why would storage need the import of db ?
More over even importing those didn't solve the issue.
On Wed, 5 Feb 2020, 07:23 Paul Stelzer, ***@***.***> wrote:
I am getting
You must import 'firebase/database' before using AngularFireDatabase
You must import 'firebase/firestore' before using AngularFireStore
This happens runtime
Why?
WHat you describe is mentioned in the changelog ("AngularFirestoreModule
no longer imports firebase/firestore on it's own to remain side-effect
free, you'll need to import 'firebase/firestore' on your own")
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#2310?email_source=notifications&email_token=AAJVX46J7XVGCL3NXWOAVADRBJLPRA5CNFSM4KPRMIQ2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEK2JLBA#issuecomment-582260100>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAJVX47GMQ2DXJFCGOS3SZDRBJLPRANCNFSM4KPRMIQQ>
.
@leon I have updated my app, too and it's working. I only want to say that the documentation is not up to date and fire/auth has more breaking changes like mentioned in the changelog.
But I close this because I think with release of the new version the documentation will be updated
This is all valuable feedback thank you and why I released rc.0. Sorry to be experimenting on all of you, I'm rushing to support Angular 9 and I probably got a little over eager with the opportunity to pay off some SEMVER debt.
However, what sould be the replacement as "AngularFireMessaging has dropped the messaging property and instead Promise Proxies the underlying Firebase messaging.Messaging instance"
You must import 'firebase/database' before using AngularFireDatabase
You must import 'firebase/firestore' before using AngularFireStore
This happens runtime
Why?
WHat you describe is mentioned in the changelog ("AngularFirestoreModule no longer imports firebase/firestore on it's own to remain side-effect free, you'll need to import 'firebase/firestore' on your own")
Getting this error in angular latest version
This likely means that the library (@angular/fire/firestore) which declares AngularFirestore has not been processed correctly by ngcc, or is not compatible with Angular Ivy. Check if a newer version of the library is available, and update if so. Also consider checking with the library's authors to see if
the library is expected to be compatible with Ivy.
Activity
[-]Documentation for @angular/fire v6[/-][+]Documentation for @angular/fire v6 seems outdated or even more breaking changes[/+]jimmykane commentedon Feb 4, 2020
Came here questioning for this, but also read the big warning (after searching for this).
Didn't know the RC was on master and didn't expect this. But well.
I have done exactly what you did to make the app compile after thinking that I had to import some other auth module.
jimmykane commentedon Feb 4, 2020
I am getting
This happens runtime
Why?
paulstelzer commentedon Feb 5, 2020
WHat you describe is mentioned in the changelog ("AngularFirestoreModule no longer imports firebase/firestore on it's own to remain side-effect free, you'll need to import 'firebase/firestore' on your own")
jimmykane commentedon Feb 5, 2020
jimmykane commentedon Feb 5, 2020
I am also having issues with the canActivate in my authGuard.
Looks like something is not triggering. Not sure how to debug this.....
jimmykane commentedon Feb 5, 2020
@jamesdaniels I am sorry to say but this is really a mess. Please help us out.
The whole auth, authGuards, and custom pipes are not working. I am using the documentation from the master branch and cannot figure out anything.
leon commentedon Feb 5, 2020
To make things "simpler" we don't have to keep jumping between the "real" firebase and angular fire.
Using proxy objects angular fire can extend the native firebase
Authobject.So before calling
fbAuth.auth.signOut()will now becomefbAuth.signOut()And as they wrote, we need to
import firebase/authat the top of ourapp.module.tsso that the firebase libraries will be included.My angular LoginService looks as follows now
paulstelzer commentedon Feb 5, 2020
@leon I have updated my app, too and it's working. I only want to say that the documentation is not up to date and fire/auth has more breaking changes like mentioned in the changelog.
But I close this because I think with release of the new version the documentation will be updated
jamesdaniels commentedon Feb 5, 2020
Yes, sorry for the mess. I've not updated the docs on master, incase people are still using stable.
Starting to get the docs caught up here https://github.com/angular/angularfire/tree/rc0_next I'd appreciate any feedback / PRs for v6 docs against this branch.
This is all valuable feedback thank you and why I released
rc.0. Sorry to be experimenting on all of you, I'm rushing to support Angular 9 and I probably got a little over eager with the opportunity to pay off some SEMVER debt.Silvac34 commentedon Mar 19, 2020
Hi !
Also getting an error with angularFireMessaging. This part of code in many tuto is obviously obsolete (this one for instance) :
However, what sould be the replacement as "AngularFireMessaging has dropped the messaging property and instead Promise Proxies the underlying Firebase messaging.Messaging instance"
alireza-saberi commentedon Mar 26, 2020
Hi;
from where?
Akahadaka commentedon Mar 26, 2020
@alireza-saberi This also got me. See example in the README:
Kushalbaldev commentedon Jul 28, 2020
Getting this error in angular latest version
This likely means that the library (@angular/fire/firestore) which declares AngularFirestore has not been processed correctly by ngcc, or is not compatible with Angular Ivy. Check if a newer version of the library is available, and update if so. Also consider checking with the library's authors to see if
the library is expected to be compatible with Ivy.