angular / angular/angularfire

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

Open
#3,091 12 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
7.8k
Forks
2.2k
Avg merge
22h 28m
Merged PRs (30d)
6

Description

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

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the flow through AngularFireAuth: call createUserWithEmailAndPassword() and then sendEmailVerification() with Angular 13.1.0, Firebase 9.4.0, and AngularFire 7.2.0. Inspect the stack-trace path through _performFetchWithErrorHandling; done means email verification completes without the read-only _canInitEmulator error.

Written by the indexing model from the issue text.

Assessment

Tech stack
angular, firebase, typescript
Domain
authentication
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.