angular / angular/angularfire

sendEmailVerification() - Cannot assign to read only property '_canInitEmulator

未關閉
#3,091 12 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
TypeScript
星號
7.8k
分支
2.2k
平均合併
22 小時 28 分鐘
30 天內合併 PR
6

描述

Hi, I've spent so much time without finding the answer so I assume it could be a bug.
After creation of a new user by createUserWithEmailAndPassword() I'm calling current user from AngularFireAuth instance. Then I call sendEmailVerification() which causes an error:
```
TypeError: Cannot assign to read only property '_canInitEmulator' of object '[object Object]'
at index-839de510.js:937
at Generator.next ()
at asyncGeneratorStep (asyncToGenerator.js:3)
at _next (asyncToGenerator.js:25)
at asyncToGenerator.js:32
at new ZoneAwarePromise (zone.js:1387)
at asyncToGenerator.js:21
at _performFetchWithErrorHandling (index-839de510.js:936)
at index-839de510.js:913
at Generator.next ()
```
It happens for angular 12 and 13.
Angular: 13.1.0
Firebase: 9.4.0
Angularfire: 7.2.0

貢獻指南

開啟貢獻指南

研究方向

首先透過 AngularFireAuth 重現流程:使用 Angular 13.1.0、Firebase 9.4.0 和 AngularFire 7.2.0 呼叫 createUserWithEmailAndPassword(),然後呼叫 sendEmailVerification()。檢查經過 _performFetchWithErrorHandling 的堆疊追蹤路徑;當電子郵件驗證在沒有唯讀 _canInitEmulator 錯誤的情況下完成時,即表示完成。

由索引模型根據 Issue 內容生成。

評估

技術堆疊
angular, firebase, typescript
領域
authentication
Issue 類型
缺陷
難度
4/5
預估耗時
3-5 天
活躍度
停滯
描述清晰度
基本清楚
新手友好度
25/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。