App named '[DEFAULT]' already exists.
See original GitHub issueHi guys,
I wanted to upload the site so I ran the command
grunt
and I got this error
App named '[DEFAULT]' already exists.
I did look around and found that it has something to do with
.config(function(){ var config = { apiKey: 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxx', authDomain: 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxx', databaseURL: 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxx', storageBucket: 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxx' }; firebase.initializeApp(config);
I have this config in angular app.js
Version info
Angular: 1.5.6
Firebase: 3.03
AngularFire: 2.0
Other (e.g. Node, browser, operating system) (if applicable):
Test case
Steps to reproduce
I used 1.yo angular generator 2.added the .config in app.js 3.then ran the command “grunt”
Expected behavior
Actual behavior
Issue Analytics
- State:
- Created 7 years ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
angularjs - Firebase App named '[DEFAULT]' already exists ...
This error occurs simply because you are trying to initialize firebase multiple times into your project. Share. Share a link to this answer....
Read more >Firebase App named '[DEFAULT]' already exists (app ... - GitHub
the issue is due to calling the initialize method of firebase more than multiple times . me had this same issue . and...
Read more >React: Firebase App named '[DEFAULT]' already exists
When developing a React application with the Firebase package, I ran into the following error: Firebase: Firebase App named '[DEFAULT]' already ...
Read more >firebase app named '[default]' already exists with different ...
Firebase App named '[DEFAULT]' already exists (app/duplicate-app ... ... Sep 16, 2020 ... It means You tried to initiate firebase duplicated. ... It...
Read more >Keep getting "Firebase App named '[DEFAULT]' already exists ...
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group. To unsubscribe from this group and stop...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
yupp, I noticed that I had that on two places and forgot to remove the other one.
Tomorrow I will be able to demo for my classmates why they should use firebase and how fun it is 😄
Thanks for the reply @jwngr and @iRoachie
The error you are getting (
App named '[DEFAULT]' already exists.
) means you have calledfirebase.initializeApp()
multiple times. You should make sure to only ever call this once.