"Uncaught Error: Component auth has not been registered yet" -

it was working until a few hours back. Please help

I’m getting this one “Uncaught TypeError: firebase.auth is not a function”.

Im getting this too in another app. any possible fixes/ideas?

No idea everything went crazy weird today.

im able to access via vpn. not able to edit

Yeah, I heard that is one fix ( or sounds like a partial one ) . There has to be a better fix then a VPN.

Aqui estou com o mesmo erro desde ontem.

Hi @MICRORAVE ,

Thank you for reaching out!
This seems to be a temporary issue. Please try the following steps:

  • Refresh the AI Studio page or reopen it in a new browser window.
  • Clear browser cache and cookies, then sign in again.

Let us know if the issue still persists!

I have similar issues and followed the step but now my I get a blank screen and app is broken.

Is there a way to pull my repo from my github since I had a version that was working there?

I am using a regular google account, i do not see add code on gemini :pensive_face:

I had the same problem, and I fixed it by editing the Firebase import in the index.html.
I removed these two:

"firebase/app": "https://esm.sh/firebase@11.3.0/app",
"firebase/auth": "https://esm.sh/firebase@11.3.0/auth"

Then, the only remaining import is:

"firebase/": "https://esm.sh/firebase@^12.7.0/"

Now, my import map looks like this:

<script type="importmap">
{
  "imports": {
    "react/": "https://esm.sh/react@18.3.1/",
    "react": "https://esm.sh/react@18.3.1",
    "react-dom/": "https://esm.sh/react-dom@18.3.1/",
    "react-dom": "https://esm.sh/react-dom@18.3.1",
    "lucide-react": "https://esm.sh/lucide-react@0.344.0",
    "firebase/": "https://esm.sh/firebase@^12.7.0/"
  }
}
</script>

I hope this also solves your issue regarding the error “Component ‘auth’ has not been registered yet.”

This worked thanks .

i removed the 2 lines.