Skip to content

fix: Flutter web does not launch if no assets are found in pubspec.yamlΒ #22

@Nana-Kwame-bot

Description

@Nana-Kwame-bot

Description
If you fail to or incorrectly provide assets configuration in pubspec.yaml file the app never finishes launching.

Steps To Reproduce

Just like with #11

  1. Create a flutter app with web platform inclusive
  2. Run mason make flutter_web_preloader and just hit enter so it overrides the index.html
  3. Build and run the app targeting web
  4. See that you get stuck on Launching lib/main_development.dart on Chrome in debug mode... for example and that the progress indicator never fills up.
  5. Adding assets fixes the issue if configured properly, you can just comment it out to replicate the issue or add assets without a tab in-front in the pubspec.

Expected Behavior
Launch the app regardless of the asset configuration

Screenshots
How it is with/without assets in the pubspec

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working as expectedp3Issues that we currently consider unimportant

    Type

    No type

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions