You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Move main.dart from web to web/scripts, update reference in HTML.
Run pub serve with Dart2JS, open webpage. Everything works fine:
Loading source assets...
Loading dart_to_js_script_rewriter transformers...
Serving pub_bug web on http://localhost:8080
Build completed successfully
[web] GET Served 3 assets.
[Info from Dart2JS]:
Compiling pub_bug|web/scripts/main.dart...
[Info from Dart2JS]:
Took 0:00:03.435261 to compile pub_bug|web/scripts/main.dart.
Build completed successfully
[web] GET Served 2 assets.
Re-run with DDC: pub serve --web-compiler=dartdevc, open webpage.
Loading source assets...
Loading dart_to_js_script_rewriter transformers...
Serving pub_bug web on http://localhost:8080
Build completed successfully
[web] GET Served 3 assets.
[web] GET Served 4 assets.
[web] GET main.dart.bootstrap.js => Could not find asset pub_bug|web/main.dart.
Browser's JS console contains:
main.dart.bootstrap.js Failed to load resource: the server responded with a status of 404 (Not Found)
require.js:143 Uncaught Error: Script error for "main.dart.bootstrap"
http://requirejs.org/docs/errors.html#scripterror
at makeError (require.js:168)
at HTMLScriptElement.onScriptError (require.js:1738)
The text was updated successfully, but these errors were encountered:
Dart SDK 1.25.0-dev.7.0
main.dart
fromweb
toweb/scripts
, update reference in HTML.pub serve
with Dart2JS, open webpage. Everything works fine:pub serve --web-compiler=dartdevc
, open webpage.The text was updated successfully, but these errors were encountered: