angular / angularfire

Angular + Firebase = ❤️
https://firebaseopensource.com/projects/angular/angularfire2
MIT License
7.64k stars 2.2k forks source link

setPersistence in AngularFire _BrowserLocalPersistence cannot be invoked without 'new'` #3550

Open omtagline opened 2 weeks ago

omtagline commented 2 weeks ago

Problem The setPersistence method does not work when imported from @angular/fire/auth, leading to a TypeError. However, it works when imported from firebase/auth.

Error When using the import from @angular/fire/auth, the following error is encountered:

ERROR TypeError: Class constructor _BrowserLocalPersistence cannot be invoked without 'new' Code Example

google-oss-bot commented 2 weeks ago

This issue does not seem to follow the issue template. Make sure you provide all the required information.