-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Closed
Labels
e: flutter.jsIssues with Flutter web custom initialization through JS APIsIssues with Flutter web custom initialization through JS APIsplatform-webWeb applications specificallyWeb applications specificallytoolAffects the "flutter" command-line tool. See also t: labels.Affects the "flutter" command-line tool. See also t: labels.
Description
Steps to reproduce
- Create a demo Flutter app using the latest bootstrap, using the following
flutter_bootstrap.js{{flutter_js}} {{flutter_build_config}} _flutter.loader.load({ config: { renderer: 'canvaskit', }, });
- Attempt to
flutter run - Observe the following error in the browser:
Uncaught (in promise) FlutterLoader could not find a build compatible with configuration and environment.
Expected results
I'd expect the app to run.
Actual results
It seems that when not specifying a --web-renderer in the command-line, the flutter_build_config variable does not populate information for the html or canvaskit renderers, only auto; making the renderer run-time JS Parameter useless.
Code sample
(Included above)
Screenshots or Video
N/A
Logs
N/A
Flutter Doctor output
This reproduces in the latest master, and probably has always reproduced since we introduced the new load API.
lukasnevosad, maxlapides, NikitaPolyakov11, lavinov-mercury, alexlinde and 12 moremaple135790
Metadata
Metadata
Assignees
Labels
e: flutter.jsIssues with Flutter web custom initialization through JS APIsIssues with Flutter web custom initialization through JS APIsplatform-webWeb applications specificallyWeb applications specificallytoolAffects the "flutter" command-line tool. See also t: labels.Affects the "flutter" command-line tool. See also t: labels.