-
Notifications
You must be signed in to change notification settings - Fork 29.8k
Description
Hi. I am able to fully build and run the flutter web app on my local using flutter run -d chrome.
The problem occurs only when I'm building the web app for release mode. I have tried everything that I can to resolve this... but without success. This is my last resort.
I've discovered that this happens because the built JavaScript files are failing to be loaded. When I look at the local (debug) build... I see that one of these files are getting loaded...
http://localhost:57344/packages/SiyakhulaDevelopmentAcademy/main_web_entrypoint.ddc.js
So my question is how do I get my release build to be able to successfully load the generated JavaScript files ???
Please help.
Steps to Reproduce
- ...
flutter channel betaorflutter channel devorflutter channel master - ...
flutter build web - ... start server in
webdirectory.
**Target OS version/browser: Web
**Devices: chrome
Flutter Doctor
[√] Flutter (Channel beta, v1.12.13+hotfix.6, on Microsoft Windows [Version 10.0.10240], locale en-ZA)
• Flutter version 1.12.13+hotfix.6 at C:\flutter
• Framework revision 18cd7a3601 (5 days ago), 2019-12-11 06:35:39 -0800
• Engine revision 2994f7e1e6
• Dart version 2.7.0
[X] Android toolchain - develop for Android devices
X Unable to locate Android SDK.
Install Android Studio from: https://developer.android.com/studio/index.html
On first launch it will assist you in installing the Android SDK components.
(or visit https://flutter.dev/setup/#android-setup for detailed instructions).
If the Android SDK has been installed to a custom location, set ANDROID_HOME to that location.
You may also want to add it to your PATH environment variable.
[√] Chrome - develop for the web
• Chrome at C:\Program Files (x86)\Google\Chrome\Application\chrome.exe
[!] Android Studio (not installed)
• Android Studio not found; download from https://developer.android.com/studio/index.html
(or visit https://flutter.dev/setup/#android-setup for detailed instructions).
[√] VS Code (version 1.41.0)
• VS Code at C:\Users\Marvin\AppData\Local\Programs\Microsoft VS Code
• Flutter extension version 3.7.1
[√] Connected device (2 available)
• Chrome • chrome • web-javascript • Google Chrome 79.0.3945.79
• Web Server • web-server • web-javascript • Flutter Tools
! Doctor found issues in 2 categories.
Console Output
js_helper.dart:1342 Uncaught Assertion failed
at Object.d (localhost:8080/main.dart.js:1744:3)
at Object.U (localhost:8080/main.dart.js:1750:23)
at localhost:8080/main.dart.js:7403:3
at OT.a (localhost:8080/main.dart.js:2557:72)
at OT.$2 (localhost:8080/main.dart.js:18265:23)
at Object.ac (localhost:8080/main.dart.js:2544:20)
at Object.w6 (localhost:8080/main.dart.js:7422:10)
at localhost:8080/main.dart.js:42009:8
at localhost:8080/main.dart.js:42004:55
at dartProgram (localhost:8080/main.dart.js:42007:84)
More Errors
Could not load content for org-dartlang-sdk:///sdk/lib/collection/iterable.dart : HTTP status code: 404