angularfire icon indicating copy to clipboard operation
angularfire copied to clipboard

Module '"firebase/app"' has no exported member 'auth'

Open tremolando opened this issue 3 years ago • 2 comments
trafficstars

Version info

Angular: ~12.2.0

Firebase: ^9.6.1

AngularFire: ^7.2.0

Other (e.g. Ionic/Cordova, Node, browser, operating system):

How to reproduce these conditions

Failing test unit, Stackblitz demonstrating the problem

Steps to set up and reproduce Importing import { auth } from 'firebase/app'; in a service.ts file throws this error rendering the app unstable.

Sample data and security rules

Debug output

** Errors in the JavaScript console **

** Output from firebase.database().enableLogging(true); **

** Screenshots **

Expected behavior

Actual behavior

tremolando avatar Dec 27 '21 11:12 tremolando

since the new version 7 you need to import from firebase/compat: import { auth } from 'firebase/compat/app';

patricsteiner avatar Jan 07 '22 09:01 patricsteiner

since the new version 7 you need to import from firebase/compat: import { auth } from 'firebase/compat/app';

I think its new version 9 where we need to add compat.

Santoshah avatar Feb 28 '22 14:02 Santoshah