-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Error using "firebase" in AngularFire2 application #585
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
Derp. I fixed it by adding |
Glad you sorted this. Please use the issue template in the future when submitting questions. There's a lot of great detail here (thanks for that!) but a few key elements missing that would have helped us troubleshoot. |
I think using |
@JimTheMan safari on iOS was throwing an exception as a result of initializing a second firebase instance. The solution @sunlyear found worked perfectly for me (thanks!!!). See my comment here for more details: |
I'm trying to use firebase storage in a an Angular 2 application. I was expecting to just be able to use the AngularFire object like this
af.storage
, but it seems that api was never implemented in AngularFire2.I was watching this video (https://www.youtube.com/watch?v=nMR_JPfL4qg) by @davideast where he provides a hackish way of getting to firebase storage at 6:45.
However, when IU try to add this code to my project I get this error:
error_handler.js:45EXCEPTION: Error in ./AppComponent class AppComponent - inline template:4:0 caused by: No Firebase App '[DEFAULT]' has been created - call Firebase App.initializeApp().ErrorHandler.handleError @ error_handler.js:45(anonymous function) @ application_ref.js:209ZoneDelegate.invoke @ zone.js:203onInvoke @ ng_zone_impl.js:43ZoneDelegate.invoke @ zone.js:202Zone.run @ zone.js:96(anonymous function) @ zone.js:462ZoneDelegate.invokeTask @ zone.js:236onInvokeTask @ ng_zone_impl.js:34ZoneDelegate.invokeTask @ zone.js:235Zone.runTask @ zone.js:136drainMicroTaskQueue @ zone.js:368
error_handler.js:47ORIGINAL EXCEPTION: No Firebase App '[DEFAULT]' has been created - call Firebase App.initializeApp().
Here is my component:
Also, here is my app.module.ts. Do I maybe need to change something here?
Thanks!
The text was updated successfully, but these errors were encountered: