angular / angular/angularfire

index.d.ts error while saving

未关闭
#3,292 3 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
TypeScript
星标
7.8k
派生
2.2k
平均合并
22 小时 28 分钟
30 天内合并 PR
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

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。