-
-
Notifications
You must be signed in to change notification settings - Fork 554
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Incompetible with SDK v9 #1145
Comments
Do you know how can I work around these compatibility issues for the firestore instance? |
Hello, I faced the same issue, but you can use a workaround with firebase import: In your initialization file use: import firebase from 'firebase/compat/app'
import 'firebase/compat/auth'
import 'firebase/compat/firestore' |
Solution offered by @Xoce51 worked for me. I'm going to leave some keywords in this comment to help others find this answer. keywords:
|
Note this caveat that the compat libraries may not work in Firebase 10 or 11:
|
The solution offered by @Xoce51 worked for me. |
Do you still get the modular benefits of v9 if you use the compat library? |
Unfortunately no. "Compat libraries have little to no size or performance advantages over their version 8 counterparts." |
Solution offered by @Xoce51 also worked for me. Adding more keywords for visibility, b/c incompatibility was perplexing me for awhile! When trying to call
The solution was to replace my import from |
Are there any plans to make react-redux-firebase compatible with Firebase SDK v9? |
@Xoce51, thank you! It worked for me also. |
Heads up for anyone wondering, you can use v9 Modular elsewhere in your app and then just have your RRF component do it's own initialization per the above comments. We saw no conflicts, which is fantastic. Once RRF supports v9 Modular you may be able to just import your existing Firebase instead of re-initializing with Compat. |
Confirmed that approach works as well. |
Bump, when will we be able to use the new modular API from firebase with this library, thus removing the compat code? |
SDK migration guide: https://firebase.google.com/docs/web/modular-upgrade
The way that modules are accessible have been changed in v9. For example,
firebase.auth()
does not exist anymore and you need to usegetAuth(firebase)
to access the auth object. Due to this change, theinit
action fails to complete successfully.Currently auth can be worked around by manually binding
auth()
to the firebase instance as following:and disabling the following option:
The text was updated successfully, but these errors were encountered: