Assistance With TS2570 Error: Property 'sendEmailVerification' does not exist on type 'Promise<User>'. Did you forget to use 'await'?

The new version AngularFire 6.0.0 is released to support Angular 9. It is not backwards compatible with older versions. It no longer supports older versions of Angular (<9). It also dropped support for older versions of Typescript(<3.6.4), Firebase Javascript SDK (<7.13.1) and firebase-tools(<8.0.0).

'auth' property of AngularFireAuth is deprecated therefore the usage of 'currentUser' has also been changed.

'currentUser' is a promise that resolves the current user. Property 'sendEmailVerification' does not exist on it but can be easily accessed through the resolved user.

  // Email verification when new user register
  SendVerificationMail() {
    return this.ngFireAuth.currentUser.then(u => u.sendEmailVerification())
    .then(() => {
      this.router.navigate(['verify-email']);
    })
  }