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
{{ message }}
Repository navigation
Unable to provide getDatabase(): Error: AngularFireModule has not been provided at getSchedulers #2999
You will see in browser developer tools the error: Error: AngularFireModule has not been provided at getSchedulers
Sample data and security rules
Debug output
** Errors in the JavaScript console ** Error: AngularFireModule has not been provided at getSchedulers
** Output from firebase.database().enableLogging(true); ** undefined
** Screenshots **
Expected behavior
Firebase Realtime Database is configured and I'm able to use injection token in Firebase Service to query the database.
I have no issues configuring Firestore in this same way. I'm able to do this same provider/injection token pattern using initializeApp and getFirestore and it works beautifully. What is the difference with getDatabase?
Actual behavior
Error: AngularFireModule has not been provided at getSchedulers is thrown and the web page is blank.
Reacted by Kaleb Fulgham, Rebecca, russellbrewer, GioYancey, Jorge Hernandez, Chris Ritchie and Nick Dunn
I'm also having this issue. I'm using authState method to capture the user as an observable in my service, and I can't get the tests to get passed this error.
Are there examples somewhere of tests that have been written for components that depend on these methods from the version 7 of the library?
Reacted by Jake Smith, aljazdolenc, Alessandro and Jake Willmsen
Activity
google-oss-bot commentedon Oct 6, 2021
This issue does not seem to follow the issue template. Make sure you provide all the required information.
thatcatcancode commentedon Oct 6, 2021
This is a follow up to this discussion: #2990
jakehockey10 commentedon May 10, 2022
I'm also having this issue. I'm using
authStatemethod to capture the user as an observable in my service, and I can't get the tests to get passed this error.Are there examples somewhere of tests that have been written for components that depend on these methods from the version 7 of the library?
alerena commentedon Jul 10, 2023
Any news on this? I'm stuck with the same problem but with authState like @jakehockey10