FlutterFlow / flutterflow-issues

A community issue tracker for FlutterFlow.
118 stars 18 forks source link

Cannot create/remove/connect Firebase project in new created branch #3877

Open KittipochSae opened 1 week ago

KittipochSae commented 1 week ago

Can we access your project?

Current Behavior

I have just created a new branch from the main branch that works properly and provides production service. Then, I cannot manage the Firebase setting of a new branch. I cannot manage the Firestore setup or deploy private API Config because it says No Firebase project present in Firestore project. I try disconnecting the Firebase project. It raised FlutterFlow project not associated with this Firebase project. So, there's no workaround to solve this problem anymore.

Expected Behavior

Cannot remove the Firebase project after creating a new branch.

Steps to Reproduce

  1. Create a Firebase project with the main branch
  2. Create a new branch.
  3. Disconnect the Firebase project

Reproducible from Blank

Bug Report Code (Required)

IT40if2D3M54mMhJ+avQb/lKijg6NH4/XZIJ0upBaCsofePrOpkAf8/7UFtUOeG7T39YOWCkinkX/MrHkfztO/EDNkyZG4RZyc1McjnzfEiuMoSIPq63b0YnQZtTfXLH1KSK2B5AXc9vdVFk6k+MDOvKQhLqHbLjNXowR+aoXdeK2SrDX1iXc2URm05KZDPz

Visual documentation

image The main branch works just fine.

image image After creating a new branch, Flutterflow raised warnings about services related to the Firebase project.

image After trying to solve the warning, the error was raised Error: No Firebase project present in FlutterFlow project. Please set your Firebase project ID in Firebase settings.

image So I tried to remove the connected Firestore project that was originally connected with the main branch. It raised FlutterFlow project not associated with this Firebase project.

Environment

- FlutterFlow version: v4.1.91 released September 12, 2024
- Platform: MacOS App, Web
- Browser name and version: Chrome Version 128.0.6613.138 (Official Build) (arm64)
- Operating system and version affected: MacOS

Additional Information

No response

Alezanello commented 1 week ago

Hey @KittipochSea, Thanks for your report, So sorry you are experiencing this issue. I was not able to reproduce this on a blank project, but it is replicable on yours. That's why I'm suspecting this is a project-specific issue and our support team is our best chance to get it solved. Do you mind following up with them? You can do that either by email: support@flutterflow.io or using the in-app chat inside of FlutterFlow.

I'm going to close this issue since this tracker is specifically for bugs reproducible from blank projects.

If you were able to reproduce this on a blank project as well, please let us know and provide the bug code of that project.

Thanks so much!

instantsoftgithub commented 6 days ago

I encountered the same issue. To reproduce it, starting from a functional project already configured with Firebase, create a new branch. In this new branch, it will not be possible to start test mode because it will show index update errors. You won't be able to create a new project either, as it will indicate that a project already exists, even though you won't be able to connect to it or identify the connected project. It will also not be possible to remove the connected project. In other words, it's not possible to proceed with development.

KittipochSae commented 6 days ago

Hey @Alezanello, a person facing the same issue as @instantsoftgithub faces the same issue. Could you reopen the issue?

dariepl commented 5 days ago

Had a similar issue. You could try this: Check “Custom code”, at Custom files at “main.dart” so that at “final action” there is no function that refferes to Firebase. After that you can merge/ rebranch/ reconnect firebase.

final actions initialize

instantsoftgithub commented 4 days ago

Tive um problema semelhante. Você pode tentar o seguinte: Marque "Código personalizado", em Arquivos personalizados em "main.dart" para que em "ação final" não haja nenhuma função que se refira ao Firebase. Depois disso, você pode mesclar / reramificar / reconectar o firebase.

final actions initialize

but I don't have any custom code in my project