Strangely, I am unable to deploy flutter apps via Flutter web since some days. I have not problem running and debugging the Flutter app in a chrome browser via Android studio but once I try
flutter build web
the generated index.html file unter /build/web/ will show a blank page with these errrors: Chrome error messages image
I started a completely new project so the error will not be due to my bad code writing:P
Can somebody help?
just change to <base href="./">
in index.html
after you build the web.
Try remove .dart-tool
folder in your project folder
and rebuild your projcet.
I had the same error and changing index.html not worked. I solved it by removing.dart-tool folder in your project folder. After removing it, IDE shows some errors but flutter build web works fine. Here is the origin link. https://github.com/flutter/flutter/issues/61464#issuecomment-924577391
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.