angular / angular/angularfire

index.d.ts error while saving

Ouverte
#3,292 3 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
Langage dominant
TypeScript
Étoiles
7.8k
Forks
2.2k
Merge moyen
22 h 28 min
PR mergées (30 j)
6

Description

I am getting this error when saving this line of code

```
import { Component, OnInit } from '@angular/core';
import { AuthService } from 'src/app/shared/auth.service';

@Component({
selector: 'app-firelogin',
templateUrl: './firelogin.component.html',
styleUrls: ['./firelogin.component.scss']
})
export class FireloginComponent implements OnInit {

email: string = '';
password: string = '';

constructor(private auth : AuthService) { }

ngOnInit(): void {
}

login() {

if (this.email == '') {
alert('Lütfen mailinizi girin');
return;
}

if (this.password == '') {
alert('Lütfen şifrenizi girin');
return;
}

this.auth.login(this.email,this.password);

this.email = '';
this.password = '';

}

}
```

```
Error: node_modules/@firebase/auth-compat/dist/auth-compat/index.d.ts:53:421 - error TS1005: ',' expected.

53 import { type User, type Unsubscribe, type ActionCodeInfo, type UserCredential, type Auth, type IdTokenResult, type MultiFactorError, type MultiFactorResolver, type PopupRedirectResolver, type Dependencies, type AuthCredential, type ApplicationVerifier, type ConfirmationResult, type AuthProvider, type MultiFactorUser, type NextOrObserver, type ErrorFn, type CompleteFn, type ActionCodeSettings, type Persistence, type PhoneAuthCredential } from "@firebase/auth";
```

How can i fix this?

Guide de contribution

Ouvrir le guide de contribution

Piste de recherche

Start with node_modules/@firebase/auth-compat/dist/auth-compat/index.d.ts:53 and reproduce the reported TypeScript TS1005 error using the Angular component shown. Check the project’s Angular, TypeScript, and Firebase package versions for compatibility; done means the project saves or builds without this declaration-file error.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
angular, firebase, typescript
Domaine
frontend
Type d'issue
Bug
Difficulté
3/5
Temps estimé
1-2 jours
Activité
À l'abandon
Clarté
À clarifier
Accessibilité débutants
20/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.