-
Notifications
You must be signed in to change notification settings - Fork 398
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
Firebase getAnalytics()
throws Error: Component analytics has not been registered yet
#530
Comments
ky28059
added a commit
to GunnWATT/watt
that referenced
this issue
Jul 22, 2022
This also turns off analytics and emulators for the time being; see FirebaseExtended/reactfire#530.
3 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Version info
React: 18.2.0
Firebase: 9.9.1
ReactFire: 4.2.1
Node: 16.14.2
Steps to reproduce
I'm trying (again) to port a CRA firebase project to nextjs and firebase/firebase-js-sdk#6019 still exists on the latest versions. To summarize, the same
FirebaseProviders
component that initializes and returns SDK providers in CRA break when using them in next. I have tried:firebase
andreactfire
@firebase/app
versions are not mismatchedfirebase
versions are not mismatchedbut running
npm run dev
still gives the same error:Expected behavior
should not throw an error.
Actual behavior
The line throws the following error:
The text was updated successfully, but these errors were encountered: