on firebase init got - Firebase: Firebase App named '[DEFAULT]' already exists (app/duplicate-app).
-
Hey
i’m developing a SSR project with quasar and firebase, i made a firebase file under “boot” and its called from quasr.conf.js as well but for a weird reason i get this err -
Firebase: Firebase App named ‘[DEFAULT]’ already exists (app/duplicate-app).
you can see my code, why am i receiving that err
tnx!!
this is the error -
-
with SSRs the firebase app continues to run, thus leading to the error above. This should resolve your problem:
if (!firebase.apps.length) { firebase.initializeApp(firebaseConfig); }