index.d.ts error while saving
- 主要言語
- TypeScript
- スター
- 7.8k
- フォーク
- 2.2k
- 平均マージ
- 22時間 28分
- マージ済み PR(30日)
- 6
説明
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?
コントリビューションガイド
調査の方向性
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.
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- angular, firebase, typescript
- 領域
- frontend
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 20/100