Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

191
Views
Angular Firebase Google authentication import issue

When I try to run this code to create a Google Auth popup on a click event, I get an error due to the 'auth' part on the last line of code. VScode is giving me the error:

Property 'auth' does not exist on type 'typeof import(/angular/my-app/node_modules/firebase/app/dist/app/index)

I see this issue with the .auth is common, but following what everyone else did I couldn't seem to resolve the issue. All the previous solution were from like 2020 so I figured something has changed.

Does anyone have any idea how to resolve this issue?

import { Directive, HostListener } from '@angular/core';
import { AngularFireAuth } from '@angular/fire/compat/auth';
import * as firebase from 'firebase/app';


@Directive({
  selector: '[appGoogleSignin]'
})
export class GoogleSigninDirective {
  constructor(private afAuth: AngularFireAuth) {}

  @HostListener('click')
  onclick() {
    this.afAuth.signInWithPopup(new firebase.*auth*.GoogleAuthProvider());
  }
}
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!