Skip to content
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

[BUG] Migrate from deprecated "serviceWorkerVersion" in example web app #1962

Closed
alestiago opened this issue Sep 12, 2024 · 0 comments · Fixed by #1963
Closed

[BUG] Migrate from deprecated "serviceWorkerVersion" in example web app #1962

alestiago opened this issue Sep 12, 2024 · 0 comments · Fixed by #1963
Labels
bug This issue reports broken functionality or another error P: 3 (low) (Default priority for feature requests) S: example Scoped to the example application

Comments

@alestiago
Copy link
Contributor

alestiago commented Sep 12, 2024

What is the bug?

When running the example on Chrome, a warning is thrown regarding usage of deprecated "serviceWorkerVersion" variable.

How can we reproduce it?

  1. Run the example on Flutter 3.24.0 with Chrome as target:
flutter run -d chrome
  1. See the warning:
Warning: In index.html:39: Local variable for "serviceWorkerVersion" is deprecated. Use "{{flutter_service_worker_version}}" template
token instead. See https://docs.flutter.dev/platform-integration/web/initialization for more details.
Warning: In index.html:49: "FlutterLoader.loadEntrypoint" is deprecated. Use "FlutterLoader.load" instead. See
https://docs.flutter.dev/platform-integration/web/initialization for more details.

Do you have a potential solution?

Follow migration details: https://docs.flutter.dev/platform-integration/web/initialization

Platforms

Web

Severity

Minimum: Allows normal functioning

@alestiago alestiago added bug This issue reports broken functionality or another error needs triage This new bug report needs reproducing and prioritizing labels Sep 12, 2024
@JaffaKetchup JaffaKetchup added P: 3 (low) (Default priority for feature requests) S: example Scoped to the example application and removed needs triage This new bug report needs reproducing and prioritizing labels Sep 12, 2024
@JaffaKetchup JaffaKetchup changed the title [BUG] stop using deprecated "serviceWorkerVersion" on Web example [BUG] Migrate from deprecated "serviceWorkerVersion" in example web app Sep 12, 2024
@github-project-automation github-project-automation bot moved this from To do to Done in Development Sep 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue reports broken functionality or another error P: 3 (low) (Default priority for feature requests) S: example Scoped to the example application
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants