firebase / firebase/firebase-tools

Framework detection fails for Flask project in Firebase Studio

Open
#9,444 1 comment 0 reactions 0 assignees View on GitHub
integration: web frameworks type: feature request
Dominant language
TypeScript
Stars
4.5k
Forks
1.3k
Avg merge
1d 12h
Merged PRs (30d)
84

Description

### [REQUIRED] Environment details

- **Firebase CLI Version:** (14.22.0)
- **Platform:** Firebase Studio (Web-based VS Code environment)

### [REQUIRED] Test case

I am using the standard Python/Flask template provided by Firebase Studio. The project contains a `main.py` with a Flask app and a `requirements.txt` file.

### [REQUIRED] Steps to reproduce

1. Create a new project in Firebase Studio using the Python (Flask) web app template.
2. In the terminal, run `firebase login` and complete the authentication.
3. Run `firebase experiments:enable webframeworks`.
4. Run `firebase deploy`.

### [REQUIRED] Expected behavior

The Firebase CLI should detect the Flask framework and proceed with the deployment to App Hosting.

### [REQUIRED] Actual behavior

The CLI fails with the error: `Error: Unable to detect the web framework in use`.

Additionally, when running `firebase init hosting` and manually selecting "use a web framework", **Flask is not present** in the list of available frameworks to choose from. This seems to be the root cause of the issue within the Firebase Studio environment.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.