Fixes overwitten with previous code

Hi there, I’m new to Google AI Studio and using Gemini 3 Pro; everything was fine, built a few little apps that worked fine, but suddenly I have the same issue with two different apps that have connections to Firebase.

The issue is that Gemini has added conflicting library versions in the importmap in index.html. It tries to fix it and removes the conflicting versions but, before the file has even finished being rewritten, the conficting version lines have re-appeared in the file and I’m still stuck with the same error and unable to fix it.

I’ve tried every suggested potential fix, restart the conversation, clone the app, clear the browser, try in incognito, edit it manually etc. but nothing gets me past it.

If I edit manually and run the app, the conflicting lines reappear. If I upload a saved working version of the file and run the app, the conflicting lines reappear.

Any suggestions?

Many thanks.

1 Like

Hi @Alan_Hardwick ,

Thank you for reaching out! Apologies for the late response! Thank you for flagging this issue. Are you still facing this issue? If yes, please let us know.

I am having the same issue. It seems not resolvable and crashes the app with this error: Error “Uncaught Error: Component auth has not been registered yet” I am at a total loss and about to give it up. Please, anyone, can you help?

Hello ,

We truly appreciate you flagging this issue, we have already filed a bug internally.

If you comment out the part of the code of importmap, it works around the problem. This issue is that importmap keeps injecting itself (how or why it does this is beyond me) but commenting it out prevents this injection.