We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
switchMap(user => { if (user) { return this.afs.doc<User>(`users/${user.uid}`).valueChanges(); } else { return of(null); } })
This function in the auth.service.ts constructor, is giving the following error during compilation:
auth.service.ts
error TS2339: Property 'uid' does not exist on type '{}
The text was updated successfully, but these errors were encountered:
i'm getting that, too.
Sorry, something went wrong.
It sounds like TS is not getting the right type. Does this fix it at line 33?
switchMap((user as any) => ...)
We might need to explicitly type this to the Firebase SDK user type
No branches or pull requests
This function in the
auth.service.ts
constructor, is giving the following error during compilation:The text was updated successfully, but these errors were encountered: