You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Failing test unit, Stackblitz demonstrating the problem
Steps to set up and reproduce
Simple standalone project and configure with
importProvidersFrom([
provideFirebaseApp(() => initializeApp(environment.firebaseConfig)),
provideFirestore(() => getFirestore()),
provideAuth(() => getAuth())
]),
in app.config.ts.
Then run "ng serve" and after compile you get:
Error: Module not found: Error: Package path ./app/firebase is not exported from package \node_modules@angular\fire (see exports field in \node_modules@angular\fire\package.json)
Sample data and security rules
Debug output
** Errors in the JavaScript console **
** Output from firebase.database().enableLogging(true); **
Nothing ... the error appears after "ng serve"
Expected behavior
No error after compile
Actual behavior
After compile i get the following error:
Error: Module not found: Error: Package path ./app/firebase is not exported from package \node_modules@angular\fire (see exports field in \node_modules@angular\fire\package.json)
The text was updated successfully, but these errors were encountered:
Working if initializeApp(), getAuth() and getFirestore() is used from firestore directly and not imported from angular/fire. Perhaps a cleanup should be done.
Version info
Angular:
17.0.8
Firebase:
10.7.1
AngularFire:
17.0.0
How to reproduce these conditions
Failing test unit, Stackblitz demonstrating the problem
Steps to set up and reproduce
Simple standalone project and configure with
importProvidersFrom([
provideFirebaseApp(() => initializeApp(environment.firebaseConfig)),
provideFirestore(() => getFirestore()),
provideAuth(() => getAuth())
]),
in app.config.ts.
Then run "ng serve" and after compile you get:
Error: Module not found: Error: Package path ./app/firebase is not exported from package \node_modules@angular\fire (see exports field in \node_modules@angular\fire\package.json)
Sample data and security rules
Debug output
** Errors in the JavaScript console **
** Output from
firebase.database().enableLogging(true);
**Nothing ... the error appears after "ng serve"
Expected behavior
No error after compile
Actual behavior
After compile i get the following error:
Error: Module not found: Error: Package path ./app/firebase is not exported from package \node_modules@angular\fire (see exports field in \node_modules@angular\fire\package.json)
The text was updated successfully, but these errors were encountered: