question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

App named '[DEFAULT]' already exists.

See original GitHub issue

Hi 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:closed
  • Created 7 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
CyrusZeicommented, Jun 7, 2016

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

0reactions
jwngrcommented, Jun 7, 2016

The error you are getting (App named '[DEFAULT]' already exists.) means you have called firebase.initializeApp() multiple times. You should make sure to only ever call this once.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found