No More Posting New Topics!

If you have a question or an issue, please start a thread in our Github Discussions Forum.
This forum is closed for new threads/ topics.

Navigation

    Quasar Framework

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    on firebase init got - Firebase: Firebase App named '[DEFAULT]' already exists (app/duplicate-app).

    Help
    2
    2
    1003
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • E
      eitan02581 last edited by eitan02581

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

      8fc6e45c-8329-4683-bf48-b43e3895100e-image.png

      this is the error -

      33204aca-1dd8-4dd0-ac4a-d0e85bc3894e-image.png

      1 Reply Last reply Reply Quote 0
      • S
        scuba-steve last edited by scuba-steve

        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); }

        https://github.com/vercel/next.js/issues/1999

        1 Reply Last reply Reply Quote 0
        • First post
          Last post