Firebaseui-web: Firebase Service named 'auth' already registered

Created on 4 Jun 2016  路  3Comments  路  Source: firebase/firebaseui-web

Go this in console.log

firebase.js:30 Uncaught Error: Firebase Service named 'auth' already registered.

I'll try to figure this out, but I'm just putting it here in case anyone else sees this issue

Most helpful comment

Thanks for the tip! Got it resolved.

I had included the latest versions of firebase.js and angularfire.js from bower. I copied the code in the readme and removed the firebase-app.js line because I assumed it's the same as firebase.js

I just realized auth is already baked in to either firebase.js or angularfire.js. Removing the firebase-auth.js line in your sample code solved the issue.

All 3 comments

Are you double including the library src file?

Thanks for the tip! Got it resolved.

I had included the latest versions of firebase.js and angularfire.js from bower. I copied the code in the readme and removed the firebase-app.js line because I assumed it's the same as firebase.js

I just realized auth is already baked in to either firebase.js or angularfire.js. Removing the firebase-auth.js line in your sample code solved the issue.

Got same error, in my case, I am using both

import '@firebase/auth';
import firebase from 'firebase/app';

in my client.

So I actually have both in my package.json,

"@firebase/auth": "0.11.3",
"firebase": "5.9.3",

After I remove @firebase/auth from package.json, the error is gone.

Seems firebase package includes @firebase/auth already.

Was this page helpful?
0 / 5 - 0 ratings