Skip to content

Calling Firebase.initializeApp more than once causes default Firebase app already exists error. #571

@ccorcos

Description

@ccorcos

ProductName: Mac OS X
ProductVersion: 10.14.4
BuildVersion: 18E226
"firebase-admin": "5.12.1",

When I call Firebase.initializeApp() more than once, I get this error:

Error: The default Firebase app already exists. This means you called initializeApp() more than once without providing an app name as the second argument. In most cases you only need to call initializeApp() once. But if you do want to initialize multiple apps, pass a second argument to initializeApp() to give each app a unique name.

Its really annoying because I want to create isolated servers for each test without having to run a separate instance of Node. Can you please fix this so more than one can run side-by-side?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions