Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Trouble importing popup auth providers #3169

Unanswered
mattbodman asked this question in Q&A
Discussion options

When I try to use a popup auth provider, like this:

import { Auth } from @angular/fire/auth;
import firebase from 'firebase/compat/app';
import GoogleAuthProvider = firebase.auth.GoogleAuthProvider;
export class AuthService {
 constructor(private auth: Auth) {}
signInWithPopup(this.auth, new GoogleAuthProvider());
etc...

I get errors like "cannot read properties of undefined" (reading GoogleAuthProvider). I have also tried importing with import firebase from 'firebase/compat' but a different version of the same thing happens.

Any clues would be great. I should mention:

@angular/core 13.2.4
@angular/fire 7.2.1
firebase 9.6.7

You must be logged in to vote

Replies: 0 comments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant

AltStyle によって変換されたページ (->オリジナル) /