Steven Dz
Steven Dz

Reputation: 89

Flutter web - ERR_FILE_NOT_FOUND in release

Flutter web release is not working, it works fine for flutter run -d chrome but when I try to flutter run --release or flutter build web, then there are some errors.

I have tried different channels and flutter clean

enter image description here

Upvotes: 0

Views: 509

Answers (1)

Felipe Zanella
Felipe Zanella

Reputation: 31

Open a terminal and navigate to the "your_app\build\web" and run the follow command:

python -m http.server 8000

After that open your browse at localhost:8000

You can find more details in here (https://flutter.dev/docs/deployment/web) see "Building the app for release" session

Upvotes: 3

Related Questions