angular / angular/angularfire

[7.2.0] Angular HMR: FirebaseError: Firestore has already been started and persistence can no longer be enabled

未关闭
#3,135 5 条评论 3 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
TypeScript
星标
7.8k
派生
2.2k
平均合并
22 小时 28 分钟
30 天内合并 PR
6

描述

### Version info

**Angular:** 13.2

**Firebase:** 9.6

**AngularFire:** 7.2

### How to reproduce these conditions

**Steps to set up and reproduce**

- serve Angular project with `ng serve --hmr`
- make some change in the application

### Debug output

** Errors in the JavaScript console **

`FirebaseError: Firestore has already been started and persistence can no longer be enabled. You can only enable persistence before calling any other methods on a Firestore object.`

### Expected behavior

No errors.

### Actual behavior

Project fails to run with the above error.

Might be related to #2655

贡献指南

打开贡献指南

调研方向

使用 `ng serve --hmr` 提供 Angular 项目服务并修改应用程序,以重现该故障。然后跟踪 AngularFire 的 Firestore 初始化和持久化设置;当 HMR 更改不再产生 FirebaseError 时,issue 即完成。

由索引模型根据 Issue 内容生成。

评估

技术栈
angular, firebase, typescript
领域
database, frontend
Issue 类型
缺陷
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
需要澄清
新手友好度
28/100

把新 issue 发到你的邮箱

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