-
Notifications
You must be signed in to change notification settings - Fork 4k
🐛 [flutterfire] Firebase initialization exception: "Error: Expected a value of type 'Object', but got one of type 'Null' #11689
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
Comments
Actually, even if I use flutter run, I don't get the exception error but, when user tries to log in with firebase auth it freezes the app, most likely because Firebase didn't initialize. |
Thanks for the report @Codseus
I am wondering if this is related to dart specifically and it's effect rippled to flutterfire plugins. See dart-lang/sdk#53334 and check if it helps further or not. |
Nothing is working, I read through every issue here but none has a solution, I downgraded to flutter 3.10.0 and downgraded firebase core and firebase auth dependencies too, but still the same problem. |
I am unable to replicate the error after following all the steps you mentioned. Can you reconfigure your firebase integration by first updating the cli tool and then reselecting the firebase project ? |
My flutterfire cli is already up to date, but I reactivated again to make sure. I did flutterfire configure again. Still getting the same exception. I added this line on my main.dart to check if firebase initializes late,
I am not getting any print on debug mode since the exception stops the app but when running with flutter run, I am always getting 'firebase initialized', I am never getting the not initialized printed. Maybe this is a flutter problem rather than flutterfire problem, or a firebase_core problem. Note: |
I am unable to replicate the error as verified earlier, but based on the report, labeling it for team's attention. |
@Codseus |
Bug report
Describe the bug
Runs fine if "flutter run" is used, but throws exception with debug mode (F5).
full error code:
Steps to reproduce
Steps to reproduce the behavior:
Expected behavior
Has to work fine.
Sample project
Just use flutter create, don't add anything but this to main.dart:
Additional context
Debug mode suddenly started throwing this exception, probably after I upgraded flutter version.
I was using windows but, just to make sure I didn't mess anything on my end, I installed fedora on my other drive.
Still same issue happens.
Flutter doctor
Run
flutter doctor
and paste the output below:Click To Expand
Flutter dependencies
Run
flutter pub deps -- --style=compact
and paste the output below:Click To Expand
The text was updated successfully, but these errors were encountered: