Skip to content

Hot Reload deletes lib/ folder during Local Run #5996

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
1 of 2 tasks
CodeInvictus opened this issue Jun 13, 2025 · 1 comment
Open
1 of 2 tasks

Hot Reload deletes lib/ folder during Local Run #5996

CodeInvictus opened this issue Jun 13, 2025 · 1 comment
Assignees
Labels
Sent with support status: can't reproduce Following the reported steps did not reproduce the bug.

Comments

@CodeInvictus
Copy link

Can we access your project?

  • I give permission for members of the FlutterFlow team to access and test my project for the sole purpose of investigating this issue.

Current Behavior

When using Local Run and pressing Hot Reload in FlutterFlow, the entire lib/ folder is being deleted. This includes main.dart and other critical files, causing the app to crash with the error:

Target file "lib/main.dart" not found.

Expected Behavior

Working!!

Hot Reload should reload code without altering or deleting any Dart files in the lib/ folder.

Steps to Reproduce

I´m using HP laptop (Windows) and my physical device is an Goggle Pixel 7a

  1. Create or open a project in FlutterFlow.

  2. Set up Local Run (I use Flutter 3.22.1 + Java 17).

  3. Run the app on a physical device.

  4. Press Hot Reload inside FlutterFlow.

  5. Observe that lib/ folder is emptied or deleted.

Reproducible from Blank

  • The steps to reproduce above start from a blank project.

Bug Report Code (Required)

Performing hot reload... The entrypoint file (i.e. the file with main()) C:\Users\ChristoferEkman\AppData\Roaming\FlutterFlow\flutterflow\workout_app\lib\main.dart cannot be found. Moving or renaming this file will prevent changes to its contents from being discovered during hot reload/restart until flutter is restarted or the file is restored. W/WindowOnBackDispatcher(24059): OnBackInvokedCallback is not enabled for the application. W/WindowOnBackDispatcher(24059): Set 'android:enableOnBackInvokedCallback="true"' in the application manifest. Reloaded 0 libraries in 670ms (compile: 174 ms, reload: 0 ms, reassemble: 126 ms).

Visual documentation

Problem.with.Hot.reload.mp4

Environment

- FlutterFlow version: Latest (as of June 13, 2025)
- Platform: FlutterFlow Web IDE (Local Run using Flutter SDK)
- Browser name and version: Microsoft Edge (Version 125.0.2535.67)
- Operating system and version affected: Windows 11 Pro, Version 23H2

Additional Information

No response

@CodeInvictus CodeInvictus added the status: needs triage A potential issue that has not been confirmed as a bug. label Jun 13, 2025
@Alezanello Alezanello self-assigned this Jun 13, 2025
Copy link
Collaborator

Hello!

I wasn’t able to replicate the issue on my end—everything compiles correctly across multiple platforms, including Android, Windows, and Chrome.

If the issue persists for you, I recommend reaching out to our support team via the in-app chat or by emailing [email protected] so we can assist you further.

Thanks!

image.png

@Alezanello Alezanello removed the status: needs triage A potential issue that has not been confirmed as a bug. label Jun 13, 2025
@Alezanello Alezanello added status: can't reproduce Following the reported steps did not reproduce the bug. Sent with support labels Jun 13, 2025 — with Linear
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Sent with support status: can't reproduce Following the reported steps did not reproduce the bug.
Projects
None yet
Development

No branches or pull requests

2 participants