The below TypeScript code in Angular 12 is giving me error when I run the server. Help

```
    const {email, password} from f.form.value;
    //TODO: do your checking here
    this.auth.signUp(email, password)
    .then((res) =>{
      this.router.navigateByUrl('/');
      this.toastr.success("Signup Success")
    })
    .catch((err) => {
      console.log(err.message);
      this.toastr.error("Signup failed")
    })
  }```

```