Skip to content
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

At startup it looks like the firebase app is initialized twice #30

Open
gmaresca opened this issue Dec 30, 2019 · 0 comments
Open

At startup it looks like the firebase app is initialized twice #30

gmaresca opened this issue Dec 30, 2019 · 0 comments

Comments

@gmaresca
Copy link

gmaresca commented Dec 30, 2019

Error at startup in browser console

AppComponent_Host.ngfactory.js? [sm]:1 ERROR [DEFAULT]: Firebase: Firebase App named '[DEFAULT]' already exists (app/duplicate-app). at error (http://localhost:4301/vendor.js:167621:21) at Object.initializeApp (http://localhost:4301/vendor.js:167912:13) at AppComponent.ngOnInit (http://localhost:4301/main.js:339:63) at checkAndUpdateDirectiveInline (http://localhost:4301/vendor.js:91654:19) at checkAndUpdateNodeInline (http://localhost:4301/vendor.js:102316:20) at checkAndUpdateNode (http://localhost:4301/vendor.js:102255:16) at debugCheckAndUpdateNode (http://localhost:4301/vendor.js:103277:62) at debugCheckDirectivesFn (http://localhost:4301/vendor.js:103220:13) at Object.eval [as updateDirectives] (ng:///AppModule/AppComponent_Host.ngfactory.js:9:5) at Object.debugUpdateDirectives [as updateDirectives] (http://localhost:4301/vendor.js:103208:21)

It looks like ngx-auth-firebaseui initializes firebase as well from app.module.ts so the initialization in app.component.ts errors out.

You can replicate the error in your live demo looking at the console
http://ngxmatfire.jerouw.nl/home

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant