-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Labels
area-web-jsIssues related to JavaScript support for Dart Web, including DDC, dart2js, and JS interop.Issues related to JavaScript support for Dart Web, including DDC, dart2js, and JS interop.dart2js-ddc-discrepancyWhen dev and production compilations have different semanticsWhen dev and production compilations have different semanticsweb-dev-compiler
Description
If I compile a Chrome extension using Manifest V3 with DDC, the extension fails to load in Chrome with a runtime error (see below). If I compile it with Dart2Js, it loads successfully. Similarly, if I switch it to using Manifest V2, it loads successfully for both dart2js and DDC.
Uncaught Error: importScripts failed for chrome-extension://pebbhcjfokadbgbnlmogdkkaahmamnap/background.dart.bootstrap.js at chrome-extension://pebbhcjfokadbgbnlmogdkkaahmamnap/background.dart.bootstrap.js
http://requirejs.org/docs/errors.html#importscripts
at makeError (require.js:168:17)
at Function.load (require.js:1984:33)
at Object.load (require.js:1685:21)
at Module.load (require.js:834:29)
at Module.fetch (require.js:824:66)
at Module.check (require.js:856:30)
at Module.enable (require.js:1176:22)
at Object.enable (require.js:1557:39)
at Module.<anonymous> (require.js:1161:33)
at require.js:134:23
Please see this minimal example: https://github.com/elliette/dart-example-extension. Instructions on how to reproduce are in the README.
Metadata
Metadata
Assignees
Labels
area-web-jsIssues related to JavaScript support for Dart Web, including DDC, dart2js, and JS interop.Issues related to JavaScript support for Dart Web, including DDC, dart2js, and JS interop.dart2js-ddc-discrepancyWhen dev and production compilations have different semanticsWhen dev and production compilations have different semanticsweb-dev-compiler