Skip to content

Flutter Web Hot Reload Error - Service Worker Not Supported #113145

@billyinferno

Description

@billyinferno

Steps to Reproduce

  1. Create flutter project
  2. Run as web
  3. Perform changes on the source and press save to hot reload

Expected results:

  1. Web browser reloaded with the updated code

Actual results:

  1. Web browser keep loading and when press it showed debug
  2. Error on console showed as Service Worker Not Supported
  3. Tested both on Chrome and Edge

Attached is the example code being used.
expansion_list.zip

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel beta, 3.4.0-17.2.pre, on Microsoft Windows [Version 10.0.22000.1042], locale en-SG)
[!] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
    ✗ cmdline-tools component is missing
      Run `path/to/sdkmanager --install "cmdline-tools;latest"`
      See https://developer.android.com/studio/command-line for more details.
    ✗ Android license status unknown.
      Run `flutter doctor --android-licenses` to accept the SDK licenses.
      See https://flutter.dev/docs/get-started/install/windows#android-setup for more details.
[✓] Chrome - develop for the web
[✓] Visual Studio - develop for Windows (Visual Studio Community 2022 17.0.5)
[✓] Android Studio (version 2020.3)
[✓] VS Code (version 1.72.0)
[✓] Connected device (3 available)
[✓] HTTP Host Availability

! Doctor found issues in 1 category.

service_worker_not_supported

Metadata

Metadata

Assignees

Labels

assigned for triageissue is assigned to a domain expert for further triagee: flutter.jsIssues with Flutter web custom initialization through JS APIsfound in release: 3.3Found to occur in 3.3found in release: 3.4Found to occur in 3.4has reproducible stepsThe issue has been confirmed reproducible and is ready to work onplatform-webWeb applications specificallywaiting for customer responseThe Flutter team cannot make further progress on this issue until the original reporter responds

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions