flutterfire
flutterfire copied to clipboard
🐛 [firebase_core_web] No Firebase App '[DEFAULT]' has been created - call Firebase App.initializeApp()
This has been happening for a while, but never reported it.
I set breakpoints for All Exceptions and Uncaught Exceptions and I get this every time. Latest flutter, packages etc.
Hey, I used the latest version and everything is working properly on web. Have you added the proper config in your main?
void main() async {
WidgetsFlutterBinding.ensureInitialized();
await Firebase.initializeApp(
options: DefaultFirebaseOptions.currentPlatform,
);
runApp(const MyApp());
}
Without any reproduction we will not be able to help you.
Hey, I used the latest version and everything is working properly on web.
Have you added the proper config in your main?
void main() async { WidgetsFlutterBinding.ensureInitialized(); await Firebase.initializeApp( options: DefaultFirebaseOptions.currentPlatform, ); runApp(const MyApp()); }
Without any reproduction we will not be able to help you.
I had the same errors. Please see: https://github.com/firebase/flutterfire/issues/9269
My solution was to completely delete that init for web in dart and do the init in index.html.
Hey @sgehrman. We need more information to resolve this issue but there hasn't been an update in 7 weekdays. I'm marking the issue as stale and if there are no new updates in the next 7 days I will close it automatically.
If you have more information that will help us get to the bottom of this, just add a comment!
Since there haven't been any recent updates here, I am going to close this issue.
@sgehrman if you're still experiencing this problem and want to continue the discussion just leave a comment here and we are happy to re-open this.