Hawkar Shwany
Hawkar Shwany

Reputation: 333

Why Flutter app does not run on chrome with the command flutter run -d chrome

I have been working on a project with Flutter and it works on mobile without issue. but when I want to run it on web using the command flutter run -d chrome the browser opens with a blank screen. when I inspect the page the console show the following errors.

Failed to load resource: the server responded with a status of 404 (Not Found) dart_stack_trace_mapper.js:1

Failed to load resource: the server responded with a status of 404 (Not Found) require.js:1

Failed to load resource: the server responded with a status of 404 (Not Found) :59034/favicon.ico:1

Upvotes: 2

Views: 3692

Answers (2)

lodestar
lodestar

Reputation: 364

You should change flutter channel to master

flutter channel master

Then, it will work.

(From this github issue: https://github.com/flutter/flutter/issues/52963)

Upvotes: 2

anonymous
anonymous

Reputation: 66

Had the same issue, I switched to "master" channel, I supposed there is an issue with "beta" channel

Upvotes: 5

Related Questions