Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: Not found: 'dart:html' when building for Android/iOS #53005

Closed
agordeev opened this issue Mar 21, 2020 · 36 comments
Closed

Error: Not found: 'dart:html' when building for Android/iOS #53005

agordeev opened this issue Mar 21, 2020 · 36 comments
Labels
c: crash Stack traces logged to the console platform-web Web applications specifically tool Affects the "flutter" command-line tool. See also t: labels.

Comments

@agordeev
Copy link
Contributor

agordeev commented Mar 21, 2020

Steps to Reproduce

I'm unable to build my project for Android/iOS. The build fails with this error:

Launching lib/main.dart on Android SDK built for x86 in debug mode...

Compiler message:
../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/top_level.dart:1:8: Error: Not found: 'dart:html'
import 'dart:html';
       ^
../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/js-0.6.1+1/lib/js.dart:8:1: Error: Not found: 'dart:js'
export 'dart:js' show allowInterop, allowInteropCaptureThis;
^
../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/js-0.6.1+1/lib/js_util.dart:8:1: Error: Not found: 'dart:js_util'
export 'dart:js_util';
Full Error Logs
Launching lib/main.dart on Android SDK built for x86 in debug mode...

Compiler message:
../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/top_level.dart:1:8: Error: Not found: 'dart:html'
import 'dart:html';
       ^
../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/js-0.6.1+1/lib/js.dart:8:1: Error: Not found: 'dart:js'
export 'dart:js' show allowInterop, allowInteropCaptureThis;
^
../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/js-0.6.1+1/lib/js_util.dart:8:1: Error: Not found: 'dart:js_util'
export 'dart:js_util';
^
Invalid depfile: /Users/andrey/Documents/MyProjects/RestaurantApp/app/client/.dart_tool/flutter_build/6b59d9bceb88d1484aeb7856588a404c/kernel_snapshot.d
Invalid depfile: /Users/andrey/Documents/MyProjects/RestaurantApp/app/client/.dart_tool/flutter_build/6b59d9bceb88d1484aeb7856588a404c/kernel_snapshot.d

Compiler message:
../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/top_level.dart:1:8: Error: Not found: 'dart:html'
import 'dart:html';
       ^
../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/js-0.6.1+1/lib/js.dart:8:1: Error: Not found: 'dart:js'
export 'dart:js' show allowInterop, allowInteropCaptureThis;
^
../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/js-0.6.1+1/lib/js_util.dart:8:1: Error: Not found: 'dart:js_util'
export 'dart:js_util';
^
../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/auth.dart:306:25: Error: The method 'allowInterop' isn't defined for the class 'Auth'.
 - 'Auth' is from 'package:firebase/src/auth.dart' ('../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/auth.dart').
Try correcting the name to the name of an existing method, or defining a method named 'allowInterop'.
      var nextWrapper = allowInterop((firebase_interop.UserJsImpl user) {
                        ^^^^^^^^^^^^
../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/auth.dart:310:26: Error: The method 'allowInterop' isn't defined for the class 'Auth'.
 - 'Auth' is from 'package:firebase/src/auth.dart' ('../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/auth.dart').
Try correcting the name to the name of an existing method, or defining a method named 'allowInterop'.
      var errorWrapper = allowInterop((e) => _changeController.addError(e));
                         ^^^^^^^^^^^^
../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/auth.dart:340:25: Error: The method 'allowInterop' isn't defined for the class 'Auth'.
 - 'Auth' is from 'package:firebase/src/auth.dart' ('../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/auth.dart').
Try correcting the name to the name of an existing method, or defining a method named 'allowInterop'.
      var nextWrapper = allowInterop((firebase_interop.UserJsImpl user) {
                        ^^^^^^^^^^^^
../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/auth.dart:345:11: Error: The method 'allowInterop' isn't defined for the class 'Auth'.
 - 'Auth' is from 'package:firebase/src/auth.dart' ('../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/auth.dart').
Try correcting the name to the name of an existing method, or defining a method named 'allowInterop'.
          allowInterop((e) => _idTokenChangedController.addError(e));
          ^^^^^^^^^^^^
../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/database.dart:164:9: Error: The method 'allowInterop' isn't defined for the class 'DatabaseReference<T>'.
 - 'DatabaseReference' is from 'package:firebase/src/database.dart' ('../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/database.dart').
Try correcting the name to the name of an existing method, or defining a method named 'allowInterop'.
        allowInterop((update) => jsify(transactionUpdate(dartify(update))));
        ^^^^^^^^^^^^
../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/database.dart:166:26: Error: The method 'allowInterop' isn't defined for the class 'DatabaseReference<T>'.
 - 'DatabaseReference' is from 'package:firebase/src/database.dart' ('../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/database.dart').
Try correcting the name to the name of an existing method, or defining a method named 'allowInterop'.
    var onCompleteWrap = allowInterop(
                         ^^^^^^^^^^^^
../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/database.dart:301:24: Error: The method 'allowInterop' isn't defined for the class 'Query<T>'.
 - 'Query' is from 'package:firebase/src/database.dart' ('../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/database.dart').
Try correcting the name to the name of an existing method, or defining a method named 'allowInterop'.
    var callbackWrap = allowInterop((database_interop.DataSnapshotJsImpl data,
                       ^^^^^^^^^^^^
../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/database.dart:325:30: Error: The method 'allowInterop' isn't defined for the class 'Query<T>'.
 - 'Query' is from 'package:firebase/src/database.dart' ('../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/database.dart').
Try correcting the name to the name of an existing method, or defining a method named 'allowInterop'.
    jsObject.once(eventType, allowInterop(
                             ^^^^^^^^^^^^
../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/database.dart:402:22: Error: The method 'allowInterop' isn't defined for the class 'DataSnapshot'.
 - 'DataSnapshot' is from 'package:firebase/src/database.dart' ('../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/database.dart').
Try correcting the name to the name of an existing method, or defining a method named 'allowInterop'.
    var actionWrap = allowInterop((d) => action(DataSnapshot.getInstance(d)));
                     ^^^^^^^^^^^^
../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/messaging.dart:72:27: Error: The method 'allowInterop' isn't defined for the class 'Messaging'.
 - 'Messaging' is from 'package:firebase/src/messaging.dart' ('../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/messaging.dart').
Try correcting the name to the name of an existing method, or defining a method named 'allowInterop'.
      final nextWrapper = allowInterop((payload) {
                          ^^^^^^^^^^^^
../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/messaging.dart:75:28: Error: The method 'allowInterop' isn't defined for the class 'Messaging'.
 - 'Messaging' is from 'package:firebase/src/messaging.dart' ('../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/messaging.dart').
Try correcting the name to the name of an existing method, or defining a method named 'allowInterop'.
      final errorWrapper = allowInterop((e) {
                           ^^^^^^^^^^^^
../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/messaging.dart:87:27: Error: The method 'allowInterop' isn't defined for the class 'Messaging'.
 - 'Messaging' is from 'package:firebase/src/messaging.dart' ('../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/messaging.dart').
Try correcting the name to the name of an existing method, or defining a method named 'allowInterop'.
      final nextWrapper = allowInterop((payload) {
                          ^^^^^^^^^^^^
../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/messaging.dart:97:27: Error: The method 'allowInterop' isn't defined for the class 'Messaging'.
 - 'Messaging' is from 'package:firebase/src/messaging.dart' ('../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/messaging.dart').
Try correcting the name to the name of an existing method, or defining a method named 'allowInterop'.
      final nextWrapper = allowInterop((_) => null);
                          ^^^^^^^^^^^^
../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/messaging.dart:98:28: Error: The method 'allowInterop' isn't defined for the class 'Messaging'.
 - 'Messaging' is from 'package:firebase/src/messaging.dart' ('../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/messaging.dart').
Try correcting the name to the name of an existing method, or defining a method named 'allowInterop'.
      final errorWrapper = allowInterop((e) {
                           ^^^^^^^^^^^^
../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/storage.dart:317:11: Error: The method 'allowInterop' isn't defined for the class 'UploadTask'.
 - 'UploadTask' is from 'package:firebase/src/storage.dart' ('../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/storage.dart').
Try correcting the name to the name of an existing method, or defining a method named 'allowInterop'.
          allowInterop((storage_interop.UploadTaskSnapshotJsImpl data) {
          ^^^^^^^^^^^^
../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/storage.dart:321:26: Error: The method 'allowInterop' isn't defined for the class 'UploadTask'.
 - 'UploadTask' is from 'package:firebase/src/storage.dart' ('../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/storage.dart').
Try correcting the name to the name of an existing method, or defining a method named 'allowInterop'.
      var errorWrapper = allowInterop((e) => _changeController.addError(e));
                         ^^^^^^^^^^^^
../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/storage.dart:322:26: Error: The method 'allowInterop' isn't defined for the class 'UploadTask'.
 - 'UploadTask' is from 'package:firebase/src/storage.dart' ('../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/storage.dart').
Try correcting the name to the name of an existing method, or defining a method named 'allowInterop'.
      var onCompletion = allowInterop(() => _changeController.close());
                         ^^^^^^^^^^^^
../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/top_level.dart:194:7: Error: Method not found: 'hasProperty'.
  if (js.hasProperty(error, 'message')) {
      ^^^^^^^^^^^
../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/top_level.dart:195:19: Error: Method not found: 'getProperty'.
    var message = js.getProperty(error, 'message');
                  ^^^^^^^^^^^
../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/utils.dart:29:7: Error: Method not found: 'hasProperty'.
  if (util.hasProperty(jsObject, 'firestore') &&
      ^^^^^^^^^^^
../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/utils.dart:30:7: Error: Method not found: 'hasProperty'.
      util.hasProperty(jsObject, 'id') &&
      ^^^^^^^^^^^
../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/utils.dart:31:7: Error: Method not found: 'hasProperty'.
      util.hasProperty(jsObject, 'parent')) {
      ^^^^^^^^^^^
../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/utils.dart:37:7: Error: Method not found: 'hasProperty'.
  if (util.hasProperty(jsObject, 'latitude') &&
      ^^^^^^^^^^^
../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/utils.dart:38:7: Error: Method not found: 'hasProperty'.
      util.hasProperty(jsObject, 'longitude') &&
      ^^^^^^^^^^^
../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/utils.dart:44:15: Error: Method not found: 'getProperty'.
  var proto = util.getProperty(jsObject, '__proto__');
              ^^^^^^^^^^^
../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/utils.dart:46:7: Error: Method not found: 'hasProperty'.
  if (util.hasProperty(proto, 'toDate') &&
      ^^^^^^^^^^^
../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/utils.dart:47:7: Error: Method not found: 'hasProperty'.
      util.hasProperty(proto, 'toMillis')) {
      ^^^^^^^^^^^
../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/utils.dart:52:7: Error: Method not found: 'hasProperty'.
  if (util.hasProperty(proto, 'isEqual') &&
      ^^^^^^^^^^^
../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/utils.dart:53:7: Error: Method not found: 'hasProperty'.
      util.hasProperty(proto, 'toBase64')) {
      ^^^^^^^^^^^
../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/utils.dart:67:24: Error: Method not found: 'getProperty'.
    map[key] = dartify(util.getProperty(jsObject, key));
                       ^^^^^^^^^^^
../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/utils.dart:91:17: Error: Method not found: 'newObject'.
    var jsMap = util.newObject();
                ^^^^^^^^^
../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/utils.dart:93:7: Error: Method not found: 'setProperty'.
      util.setProperty(jsMap, key, jsify(value));
      ^^^^^^^^^^^
../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/utils.dart:116:12: Error: Method not found: 'allowInterop'.
    return allowInterop(dartObject);
           ^^^^^^^^^^^^
../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/utils.dart:124:5: Error: Method not found: 'callMethod'.
    util.callMethod(jsObject, method, args);
    ^^^^^^^^^^
../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/utils.dart:139:19: Error: Method not found: 'promiseToFuture'.
    value = await util.promiseToFuture(thenable);
                  ^^^^^^^^^^^^^^^
../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/utils.dart:141:9: Error: Method not found: 'hasProperty'.
    if (util.hasProperty(e, 'code')) {
        ^^^^^^^^^^^
../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/utils.dart:152:27: Error: Method not found: 'allowInterop'.
  return PromiseJsImpl<S>(allowInterop((
                          ^^^^^^^^^^^^
../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/utils.dart:165:5: Error: Method not found: 'allowInterop'.
    allowInterop(c.completeError);
    ^^^^^^^^^^^^
../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/utils.dart:173:22: Error: Method not found: 'getProperty'.
  String get code => util.getProperty(_source, 'code');
                     ^^^^^^^^^^^
../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/utils.dart:176:25: Error: Method not found: 'getProperty'.
  String get message => util.getProperty(_source, 'message');
                        ^^^^^^^^^^^
../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/utils.dart:179:22: Error: Method not found: 'getProperty'.
  String get name => util.getProperty(_source, 'name');
                     ^^^^^^^^^^^
../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/utils.dart:182:32: Error: Method not found: 'getProperty'.
  Object get serverResponse => util.getProperty(_source, 'serverResponse');
                               ^^^^^^^^^^^
../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/utils.dart:185:23: Error: Method not found: 'getProperty'.
  String get stack => util.getProperty(_source, 'stack');
                      ^^^^^^^^^^^
../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/firestore.dart:105:30: Error: The method 'allowInterop' isn't defined for the class 'Firestore'.
 - 'Firestore' is from 'package:firebase/src/firestore.dart' ('../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/firestore.dart').
Try correcting the name to the name of an existing method, or defining a method named 'allowInterop'.
    var updateFunctionWrap = allowInterop((transaction) =>
                             ^^^^^^^^^^^^
../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/firestore.dart:306:11: Error: The method 'allowInterop' isn't defined for the class 'DocumentReference'.
 - 'DocumentReference' is from 'package:firebase/src/firestore.dart' ('../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/firestore.dart').
Try correcting the name to the name of an existing method, or defining a method named 'allowInterop'.
          allowInterop((firestore_interop.DocumentSnapshotJsImpl snapshot) {
          ^^^^^^^^^^^^
../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/firestore.dart:310:26: Error: The method 'allowInterop' isn't defined for the class 'DocumentReference'.
 - 'DocumentReference' is from 'package:firebase/src/firestore.dart' ('../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/firestore.dart').
Try correcting the name to the name of an existing method, or defining a method named 'allowInterop'.
      var errorWrapper = allowInterop((e) => controller.addError(e));
                         ^^^^^^^^^^^^
../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/firestore.dart:445:9: Error: The method 'allowInterop' isn't defined for the class 'Query<T>'.
 - 'Query' is from 'package:firebase/src/firestore.dart' ('../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/firestore.dart').
Try correcting the name to the name of an existing method, or defining a method named 'allowInterop'.
        allowInterop((firestore_interop.QuerySnapshotJsImpl snapshot) {
        ^^^^^^^^^^^^
../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/firestore.dart:449:24: Error: The method 'allowInterop' isn't defined for the class 'Query<T>'.
 - 'Query' is from 'package:firebase/src/firestore.dart' ('../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/firestore.dart').
Try correcting the name to the name of an existing method, or defining a method named 'allowInterop'.
    var errorWrapper = allowInterop((e) => controller.addError(e));
                       ^^^^^^^^^^^^
../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/firestore.dart:775:9: Error: The method 'allowInterop' isn't defined for the class 'QuerySnapshot'.
 - 'QuerySnapshot' is from 'package:firebase/src/firestore.dart' ('../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/firestore.dart').
Try correcting the name to the name of an existing method, or defining a method named 'allowInterop'.
        allowInterop((s) => callback(DocumentSnapshot.getInstance(s)));
        ^^^^^^^^^^^^
../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/interop/js_interop.dart:17:7: Error: Method not found: 'hasProperty'.
  if (util.hasProperty(jsObject, 'toDateString')) {
      ^^^^^^^^^^^
../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/auth.dart:306:25: Error: The method 'allowInterop' isn't defined for the class 'Auth'.
 - 'Auth' is from 'package:firebase/src/auth.dart' ('../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/auth.dart').
Try correcting the name to the name of an existing method, or defining a method named 'allowInterop'.
      var nextWrapper = allowInterop((firebase_interop.UserJsImpl user) {
                        ^^^^^^^^^^^^
../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/auth.dart:310:26: Error: The method 'allowInterop' isn't defined for the class 'Auth'.
 - 'Auth' is from 'package:firebase/src/auth.dart' ('../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/auth.dart').
Try correcting the name to the name of an existing method, or defining a method named 'allowInterop'.
      var errorWrapper = allowInterop((e) => _changeController.addError(e));
                         ^^^^^^^^^^^^
../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/auth.dart:340:25: Error: The method 'allowInterop' isn't defined for the class 'Auth'.
 - 'Auth' is from 'package:firebase/src/auth.dart' ('../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/auth.dart').
Try correcting the name to the name of an existing method, or defining a method named 'allowInterop'.
      var nextWrapper = allowInterop((firebase_interop.UserJsImpl user) {
                        ^^^^^^^^^^^^
../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/auth.dart:345:11: Error: The method 'allowInterop' isn't defined for the class 'Auth'.
 - 'Auth' is from 'package:firebase/src/auth.dart' ('../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/auth.dart').
Try correcting the name to the name of an existing method, or defining a method named 'allowInterop'.
          allowInterop((e) => _idTokenChangedController.addError(e));
          ^^^^^^^^^^^^
../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/database.dart:164:9: Error: The method 'allowInterop' isn't defined for the class 'DatabaseReference<T>'.
 - 'DatabaseReference' is from 'package:firebase/src/database.dart' ('../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/database.dart').
Try correcting the name to the name of an existing method, or defining a method named 'allowInterop'.
        allowInterop((update) => jsify(transactionUpdate(dartify(update))));
        ^^^^^^^^^^^^
../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/database.dart:166:26: Error: The method 'allowInterop' isn't defined for the class 'DatabaseReference<T>'.
 - 'DatabaseReference' is from 'package:firebase/src/database.dart' ('../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/database.dart').
Try correcting the name to the name of an existing method, or defining a method named 'allowInterop'.
    var onCompleteWrap = allowInterop(
                         ^^^^^^^^^^^^
../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/database.dart:301:24: Error: The method 'allowInterop' isn't defined for the class 'Query<T>'.
 - 'Query' is from 'package:firebase/src/database.dart' ('../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/database.dart').
Try correcting the name to the name of an existing method, or defining a method named 'allowInterop'.
    var callbackWrap = allowInterop((database_interop.DataSnapshotJsImpl data,
                       ^^^^^^^^^^^^
../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/database.dart:325:30: Error: The method 'allowInterop' isn't defined for the class 'Query<T>'.
 - 'Query' is from 'package:firebase/src/database.dart' ('../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/database.dart').
Try correcting the name to the name of an existing method, or defining a method named 'allowInterop'.
    jsObject.once(eventType, allowInterop(
                             ^^^^^^^^^^^^
../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/database.dart:402:22: Error: The method 'allowInterop' isn't defined for the class 'DataSnapshot'.
 - 'DataSnapshot' is from 'package:firebase/src/database.dart' ('../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/database.dart').
Try correcting the name to the name of an existing method, or defining a method named 'allowInterop'.
    var actionWrap = allowInterop((d) => action(DataSnapshot.getInstance(d)));
                     ^^^^^^^^^^^^
../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/messaging.dart:72:27: Error: The method 'allowInterop' isn't defined for the class 'Messaging'.
 - 'Messaging' is from 'package:firebase/src/messaging.dart' ('../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/messaging.dart').
Try correcting the name to the name of an existing method, or defining a method named 'allowInterop'.
      final nextWrapper = allowInterop((payload) {
                          ^^^^^^^^^^^^
../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/messaging.dart:75:28: Error: The method 'allowInterop' isn't defined for the class 'Messaging'.
 - 'Messaging' is from 'package:firebase/src/messaging.dart' ('../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/messaging.dart').
Try correcting the name to the name of an existing method, or defining a method named 'allowInterop'.
      final errorWrapper = allowInterop((e) {
                           ^^^^^^^^^^^^
../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/messaging.dart:87:27: Error: The method 'allowInterop' isn't defined for the class 'Messaging'.
 - 'Messaging' is from 'package:firebase/src/messaging.dart' ('../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/messaging.dart').
Try correcting the name to the name of an existing method, or defining a method named 'allowInterop'.
      final nextWrapper = allowInterop((payload) {
                          ^^^^^^^^^^^^
../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/messaging.dart:97:27: Error: The method 'allowInterop' isn't defined for the class 'Messaging'.
 - 'Messaging' is from 'package:firebase/src/messaging.dart' ('../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/messaging.dart').
Try correcting the name to the name of an existing method, or defining a method named 'allowInterop'.
      final nextWrapper = allowInterop((_) => null);
                          ^^^^^^^^^^^^
../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/messaging.dart:98:28: Error: The method 'allowInterop' isn't defined for the class 'Messaging'.
 - 'Messaging' is from 'package:firebase/src/messaging.dart' ('../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/messaging.dart').
Try correcting the name to the name of an existing method, or defining a method named 'allowInterop'.
      final errorWrapper = allowInterop((e) {
                           ^^^^^^^^^^^^
../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/storage.dart:317:11: Error: The method 'allowInterop' isn't defined for the class 'UploadTask'.
 - 'UploadTask' is from 'package:firebase/src/storage.dart' ('../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/storage.dart').
Try correcting the name to the name of an existing method, or defining a method named 'allowInterop'.
          allowInterop((storage_interop.UploadTaskSnapshotJsImpl data) {
          ^^^^^^^^^^^^
../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/storage.dart:321:26: Error: The method 'allowInterop' isn't defined for the class 'UploadTask'.
 - 'UploadTask' is from 'package:firebase/src/storage.dart' ('../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/storage.dart').
Try correcting the name to the name of an existing method, or defining a method named 'allowInterop'.
      var errorWrapper = allowInterop((e) => _changeController.addError(e));
                         ^^^^^^^^^^^^
../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/storage.dart:322:26: Error: The method 'allowInterop' isn't defined for the class 'UploadTask'.
 - 'UploadTask' is from 'package:firebase/src/storage.dart' ('../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/storage.dart').
Try correcting the name to the name of an existing method, or defining a method named 'allowInterop'.
      var onCompletion = allowInterop(() => _changeController.close());
                         ^^^^^^^^^^^^
../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/top_level.dart:194:7: Error: Method not found: 'hasProperty'.
  if (js.hasProperty(error, 'message')) {
      ^^^^^^^^^^^
../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/top_level.dart:195:19: Error: Method not found: 'getProperty'.
    var message = js.getProperty(error, 'message');
                  ^^^^^^^^^^^
../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/utils.dart:29:7: Error: Method not found: 'hasProperty'.
  if (util.hasProperty(jsObject, 'firestore') &&
      ^^^^^^^^^^^
../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/utils.dart:30:7: Error: Method not found: 'hasProperty'.
      util.hasProperty(jsObject, 'id') &&
      ^^^^^^^^^^^
../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/utils.dart:31:7: Error: Method not found: 'hasProperty'.
      util.hasProperty(jsObject, 'parent')) {
      ^^^^^^^^^^^
../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/utils.dart:37:7: Error: Method not found: 'hasProperty'.
  if (util.hasProperty(jsObject, 'latitude') &&
      ^^^^^^^^^^^
../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/utils.dart:38:7: Error: Method not found: 'hasProperty'.
      util.hasProperty(jsObject, 'longitude') &&
      ^^^^^^^^^^^
../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/utils.dart:44:15: Error: Method not found: 'getProperty'.
  var proto = util.getProperty(jsObject, '__proto__');
              ^^^^^^^^^^^
../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/utils.dart:46:7: Error: Method not found: 'hasProperty'.
  if (util.hasProperty(proto, 'toDate') &&
      ^^^^^^^^^^^
../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/utils.dart:47:7: Error: Method not found: 'hasProperty'.
      util.hasProperty(proto, 'toMillis')) {
      ^^^^^^^^^^^
../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/utils.dart:52:7: Error: Method not found: 'hasProperty'.
  if (util.hasProperty(proto, 'isEqual') &&
      ^^^^^^^^^^^
../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/utils.dart:53:7: Error: Method not found: 'hasProperty'.
      util.hasProperty(proto, 'toBase64')) {
      ^^^^^^^^^^^
../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/utils.dart:67:24: Error: Method not found: 'getProperty'.
    map[key] = dartify(util.getProperty(jsObject, key));
                       ^^^^^^^^^^^
../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/utils.dart:91:17: Error: Method not found: 'newObject'.
    var jsMap = util.newObject();
                ^^^^^^^^^
../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/utils.dart:93:7: Error: Method not found: 'setProperty'.
      util.setProperty(jsMap, key, jsify(value));
      ^^^^^^^^^^^
../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/utils.dart:116:12: Error: Method not found: 'allowInterop'.
    return allowInterop(dartObject);
           ^^^^^^^^^^^^
../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/utils.dart:124:5: Error: Method not found: 'callMethod'.
    util.callMethod(jsObject, method, args);
    ^^^^^^^^^^
../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/utils.dart:139:19: Error: Method not found: 'promiseToFuture'.
    value = await util.promiseToFuture(thenable);
                  ^^^^^^^^^^^^^^^
../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/utils.dart:141:9: Error: Method not found: 'hasProperty'.
    if (util.hasProperty(e, 'code')) {
        ^^^^^^^^^^^
../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/utils.dart:152:27: Error: Method not found: 'allowInterop'.
  return PromiseJsImpl<S>(allowInterop((
                          ^^^^^^^^^^^^
../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/utils.dart:165:5: Error: Method not found: 'allowInterop'.
    allowInterop(c.completeError);
    ^^^^^^^^^^^^
../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/utils.dart:173:22: Error: Method not found: 'getProperty'.
  String get code => util.getProperty(_source, 'code');
                     ^^^^^^^^^^^
../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/utils.dart:176:25: Error: Method not found: 'getProperty'.
  String get message => util.getProperty(_source, 'message');
                        ^^^^^^^^^^^
../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/utils.dart:179:22: Error: Method not found: 'getProperty'.
  String get name => util.getProperty(_source, 'name');
                     ^^^^^^^^^^^
../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/utils.dart:182:32: Error: Method not found: 'getProperty'.
  Object get serverResponse => util.getProperty(_source, 'serverResponse');
                               ^^^^^^^^^^^
../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/utils.dart:185:23: Error: Method not found: 'getProperty'.
  String get stack => util.getProperty(_source, 'stack');
                      ^^^^^^^^^^^
../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/firestore.dart:105:30: Error: The method 'allowInterop' isn't defined for the class 'Firestore'.
 - 'Firestore' is from 'package:firebase/src/firestore.dart' ('../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/firestore.dart').
Try correcting the name to the name of an existing method, or defining a method named 'allowInterop'.
    var updateFunctionWrap = allowInterop((transaction) =>
                             ^^^^^^^^^^^^
../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/firestore.dart:306:11: Error: The method 'allowInterop' isn't defined for the class 'DocumentReference'.
 - 'DocumentReference' is from 'package:firebase/src/firestore.dart' ('../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/firestore.dart').
Try correcting the name to the name of an existing method, or defining a method named 'allowInterop'.
          allowInterop((firestore_interop.DocumentSnapshotJsImpl snapshot) {
          ^^^^^^^^^^^^
../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/firestore.dart:310:26: Error: The method 'allowInterop' isn't defined for the class 'DocumentReference'.
 - 'DocumentReference' is from 'package:firebase/src/firestore.dart' ('../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/firestore.dart').
Try correcting the name to the name of an existing method, or defining a method named 'allowInterop'.
      var errorWrapper = allowInterop((e) => controller.addError(e));
                         ^^^^^^^^^^^^
../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/firestore.dart:445:9: Error: The method 'allowInterop' isn't defined for the class 'Query<T>'.
 - 'Query' is from 'package:firebase/src/firestore.dart' ('../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/firestore.dart').
Try correcting the name to the name of an existing method, or defining a method named 'allowInterop'.
        allowInterop((firestore_interop.QuerySnapshotJsImpl snapshot) {
        ^^^^^^^^^^^^
../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/firestore.dart:449:24: Error: The method 'allowInterop' isn't defined for the class 'Query<T>'.
 - 'Query' is from 'package:firebase/src/firestore.dart' ('../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/firestore.dart').
Try correcting the name to the name of an existing method, or defining a method named 'allowInterop'.
    var errorWrapper = allowInterop((e) => controller.addError(e));
                       ^^^^^^^^^^^^
../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/firestore.dart:775:9: Error: The method 'allowInterop' isn't defined for the class 'QuerySnapshot'.
 - 'QuerySnapshot' is from 'package:firebase/src/firestore.dart' ('../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/firestore.dart').
Try correcting the name to the name of an existing method, or defining a method named 'allowInterop'.
        allowInterop((s) => callback(DocumentSnapshot.getInstance(s)));
        ^^^^^^^^^^^^
../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/interop/js_interop.dart:17:7: Error: Method not found: 'hasProperty'.
  if (util.hasProperty(jsObject, 'toDateString')) {
      ^^^^^^^^^^^
Unhandled exception:
FileSystemException(uri=org-dartlang-untranslatable-uri:dart%3Ahtml; message=StandardFileSystem only supports file:* and data:* URIs)
�[38;5;248m#0      StandardFileSystem.entityForUri  (package:front_end/src/api_prototype/standard_file_system.dart:33:7)�[39;49m
�[38;5;248m#1      asFileUri  (package:vm/kernel_front_end.dart:567:37)�[39;49m
�[38;5;248m#2      writeDepfile  (package:vm/kernel_front_end.dart:760:21)�[39;49m
�[38;5;244m<asynchronous suspension>�[39;49m
�[38;5;248m#3      FrontendCompiler.compile  (package:frontend_server/frontend_server.dart:535:15)�[39;49m
�[38;5;244m<asynchronous suspension>�[39;49m
�[38;5;248m#4      _FlutterFrontendCompiler.compile  (package:flutter_frontend_server/server.dart:40:22)�[39;49m
�[38;5;248m#5      starter  (package:flutter_frontend_server/server.dart:177:27)�[39;49m
�[38;5;248m#6      main  (file:///b/s/w/ir/cache/builder/src/flutter/flutter_frontend_server/bin/starter.dart:8:30)�[39;49m
�[38;5;244m#7      _startIsolate.<anonymous closure>  (dart:isolate-patch/isolate_patch.dart:299:32)�[39;49m
�[38;5;244m#8      _RawReceivePortImpl._handleMessage  (dart:isolate-patch/isolate_patch.dart:168:12)�[39;49m


Target kernel_snapshot failed: Exception: Errors during snapshot creation: null
build failed.

FAILURE: Build failed with an exception.

* Where:
Script '/Users/andrey/flutter/packages/flutter_tools/gradle/flutter.gradle' line: 840

* What went wrong:
Execution failed for task ':app:compileFlutterBuildDebug'.
> Process 'command '/Users/andrey/flutter/bin/flutter'' finished with non-zero exit value 1
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 12s
Exception: Gradle task assembleDebug failed with exit code 1
Exited (sigterm)

I did flutter clean but that didn't help.

Don't know which Flutter version caused this.

flutter doctor
[✓] Flutter (Channel beta, v1.16.2-pre.26, on Mac OS X 10.15.3 19D76, locale en-RU)
    • Flutter version 1.16.2-pre.26 at /Users/andrey/flutter
    • Framework revision 3998549d52 (22 hours ago), 2020-03-20 06:07:25 -0700
    • Engine revision fd60ddf751
    • Dart version 2.8.0 (build 2.8.0-dev.16.0 5b21a43c55)

 
[✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
    • Android SDK at /Users/andrey/Library/Android/sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-29, build-tools 28.0.3
    • ANDROID_HOME = /Users/andrey/Library/Android/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 11.3.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 11.3.1, Build version 11C504
    • CocoaPods version 1.8.4

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[!] Android Studio (version 3.5)
    • Android Studio at /Applications/Android Studio.app/Contents
    ✗ Flutter plugin not installed; this adds Flutter specific functionality.
    ✗ Dart plugin not installed; this adds Dart specific functionality.
    • Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405)

[✓] VS Code (version 1.43.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.8.1

[✓] Connected device (4 available)
    • Android SDK built for x86 • emulator-5554                        • android-x86    • Android 8.1.0 (API 27) (emulator)
    • iPhone 11 Pro             • E5040D43-B64A-41FD-B102-32C9A6EF43A8 • ios            • com.apple.CoreSimulator.SimRuntime.iOS-13-3 (simulator)
    • Chrome                    • chrome                               • web-javascript • Google Chrome 80.0.3987.149
    • Web Server                • web-server                           • web-javascript • Flutter Tools

! Doctor found issues in 1 category.
@iapicca
Copy link
Contributor

iapicca commented Mar 23, 2020

Hi @agordeev
can you please provide your flutter run --verbose
and your pubspec.yaml
Thank you

@iapicca iapicca added in triage Presently being triaged by the triage team waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds labels Mar 23, 2020
@agordeev
Copy link
Contributor Author

agordeev commented Mar 23, 2020

pubspec.yaml

name: my_app
description: abc
version: 0.0.1+1

environment:
  sdk: ">=2.7.0 <3.0.0"

dependencies:
  flutter:
    sdk: flutter

  # App
  core:
    path: ../core
  shared:
    path: ../shared
  # data_access:
  #   path: ../data_access

  # Widgets
  flutter_platform_widgets:
  cached_network_image: any
  zoomable_image: any
  google_maps_flutter:

  # Misc
  provider: 
  flutter_bloc: 
  equatable: 
  email_validator: any
  package_info: any
  device_info: any

  cupertino_icons: ^0.1.2

dev_dependencies:
  flutter_test:
    sdk: flutter
flutter:
  assets:
    - assets/images/
    - assets/fonts/
flutter run --verbose
[   +3 ms] /Users/user/Library/Android/sdk/platform-tools/adb -s emulator-5554 shell getprop
[  +37 ms] Artifact Instance of 'AndroidMavenArtifacts' is not required, skipping update.
[   +3 ms] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[   +3 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[  +86 ms] Found plugin cloud_firestore at /Users/user/flutter/.pub-cache/hosted/pub.dartlang.org/cloud_firestore-0.13.3/
[   +9 ms] Found plugin cloud_firestore_web at /Users/user/flutter/.pub-cache/hosted/pub.dartlang.org/cloud_firestore_web-0.1.0+3/
[   +3 ms] Found plugin cloud_functions at /Users/user/flutter/.pub-cache/hosted/pub.dartlang.org/cloud_functions-0.4.2+3/
[   +3 ms] Found plugin cloud_functions_web at /Users/user/flutter/.pub-cache/hosted/pub.dartlang.org/cloud_functions_web-1.0.3/
[  +10 ms] Found plugin device_info at /Users/user/flutter/.pub-cache/hosted/pub.dartlang.org/device_info-0.4.0+1/
[   +7 ms] Found plugin firebase_auth at /Users/user/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_auth-0.15.5+3/
[   +3 ms] Found plugin firebase_auth_web at /Users/user/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_auth_web-0.1.2/
[   +3 ms] Found plugin firebase_core at /Users/user/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_core-0.4.4/
[   +3 ms] Found plugin firebase_core_web at /Users/user/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_core_web-0.1.1+2/
[   +8 ms] Found plugin flutter_plugin_android_lifecycle at /Users/user/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_plugin_android_lifecycle-1.0.6/
[   +7 ms] Found plugin google_maps_flutter at /Users/user/flutter/.pub-cache/hosted/pub.dartlang.org/google_maps_flutter-0.5.24+1/
[  +11 ms] Found plugin package_info at /Users/user/flutter/.pub-cache/hosted/pub.dartlang.org/package_info-0.4.0+3/
[   +2 ms] Found plugin path_provider at /Users/user/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider-0.5.0+1/
[  +12 ms] Found plugin sqflite at /Users/user/flutter/.pub-cache/hosted/pub.dartlang.org/sqflite-1.1.5/
[  +42 ms] Found plugin cloud_firestore at /Users/user/flutter/.pub-cache/hosted/pub.dartlang.org/cloud_firestore-0.13.3/
[   +2 ms] Found plugin cloud_firestore_web at /Users/user/flutter/.pub-cache/hosted/pub.dartlang.org/cloud_firestore_web-0.1.0+3/
[   +1 ms] Found plugin cloud_functions at /Users/user/flutter/.pub-cache/hosted/pub.dartlang.org/cloud_functions-0.4.2+3/
[   +1 ms] Found plugin cloud_functions_web at /Users/user/flutter/.pub-cache/hosted/pub.dartlang.org/cloud_functions_web-1.0.3/
[   +5 ms] Found plugin device_info at /Users/user/flutter/.pub-cache/hosted/pub.dartlang.org/device_info-0.4.0+1/
[   +2 ms] Found plugin firebase_auth at /Users/user/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_auth-0.15.5+3/
[   +1 ms] Found plugin firebase_auth_web at /Users/user/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_auth_web-0.1.2/
[        ] Found plugin firebase_core at /Users/user/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_core-0.4.4/
[   +1 ms] Found plugin firebase_core_web at /Users/user/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_core_web-0.1.1+2/
[  +12 ms] Found plugin flutter_plugin_android_lifecycle at /Users/user/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_plugin_android_lifecycle-1.0.6/
[   +2 ms] Found plugin google_maps_flutter at /Users/user/flutter/.pub-cache/hosted/pub.dartlang.org/google_maps_flutter-0.5.24+1/
[   +5 ms] Found plugin package_info at /Users/user/flutter/.pub-cache/hosted/pub.dartlang.org/package_info-0.4.0+3/
[   +1 ms] Found plugin path_provider at /Users/user/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider-0.5.0+1/
[   +5 ms] Found plugin sqflite at /Users/user/flutter/.pub-cache/hosted/pub.dartlang.org/sqflite-1.1.5/
[  +62 ms] Generating /Users/user/Documents/MyProjects/MyApp/app/client/android/app/src/main/java/io/flutter/plugins/GeneratedPluginRegistrant.java
[  +29 ms] ro.hardware = ranchu
[  +32 ms] Using hardware rendering with device Android SDK built for x86. If you get graphics artifacts, consider enabling software rendering with "--enable-software-rendering".
[  +27 ms] Launching lib/main.dart on Android SDK built for x86 in debug mode...
[  +11 ms] /Users/user/flutter/bin/cache/dart-sdk/bin/dart /Users/user/flutter/bin/cache/artifacts/engine/darwin-x64/frontend_server.dart.snapshot --sdk-root
/Users/user/flutter/bin/cache/artifacts/engine/common/flutter_patched_sdk/ --incremental --target=flutter --debugger-module-names -Ddart.developer.causal_async_stacks=true --output-dill
/var/folders/3p/bhps_g7n5mz0j4xfn_bkbngh0000gn/T/flutter_tool.sgsWVj/app.dill --packages /Users/user/Documents/MyProjects/MyApp/app/client/.packages -Ddart.vm.profile=false
-Ddart.vm.product=false --bytecode-options=source-positions,local-var-info,debugger-stops,instance-field-initializers,keep-unreachable-code,avoid-closure-call-instructions --enable-asserts
--track-widget-creation --filesystem-scheme org-dartlang-root --initialize-from-dill build/cache.dill
[  +19 ms] executing: /Users/user/Library/Android/sdk/platform-tools/adb -s emulator-5554 shell -x logcat -v time -t 1
[  +19 ms] Exit code 0 from: /Users/user/Library/Android/sdk/platform-tools/adb -s emulator-5554 shell -x logcat -v time -t 1
[  +14 ms] --------- beginning of main
           03-23 14:59:10.281 I/BackgroundDexOptService( 1661): Pinning optimized code {}
[  +15 ms] <- compile package:my_app/main.dart
[  +12 ms] executing: /Users/user/Library/Android/sdk/platform-tools/adb version
[  +24 ms] Android Debug Bridge version 1.0.41
           Version 29.0.5-5949299
           Installed as /Users/user/Library/Android/sdk/platform-tools/adb
[   +2 ms] executing: /Users/user/Library/Android/sdk/platform-tools/adb start-server
[  +11 ms] Building APK
[  +19 ms] Running Gradle task 'assembleDebug'...
[   +2 ms] gradle.properties already sets `android.enableR8`
[   +3 ms] Using gradle from /Users/user/Documents/MyProjects/MyApp/app/client/android/gradlew.
[        ] /Users/user/Documents/MyProjects/MyApp/app/client/android/gradlew mode: 33261 rwxr-xr-x.
[ +184 ms] executing: /usr/bin/plutil -convert json -o - /Applications/Android Studio.app/Contents/Info.plist
[  +10 ms] Exit code 0 from: /usr/bin/plutil -convert json -o - /Applications/Android Studio.app/Contents/Info.plist
[        ] {"CFBundleName":"Android
Studio","JVMOptions":{"ClassPath":"$APP_PACKAGE\/Contents\/lib\/bootstrap.jar:$APP_PACKAGE\/Contents\/lib\/extensions.jar:$APP_PACKAGE\/Contents\/lib\/util.jar:$APP_PACKAGE\/Contents\/lib\/jdom.ja
r:$APP_PACKAGE\/Contents\/lib\/log4j.jar:$APP_PACKAGE\/Contents\/lib\/trove4j.jar:$APP_PACKAGE\/Contents\/lib\/jna.jar","JVMVersion":"1.8*,1.8+","WorkingDirectory":"$APP_PACKAGE\/Contents\/bin","M
ainClass":"com.intellij.idea.Main","Properties":{"idea.paths.selector":"AndroidStudio3.5","idea.executable":"studio","idea.platform.prefix":"AndroidStudio","idea.home.path":"$APP_PACKAGE\/Contents
"}},"LSArchitecturePriority":["x86_64"],"CFBundleVersion":"AI-191.8026.42.35.5977832","CFBundleDevelopmentRegion":"English","CFBundleDocumentTypes":[{"CFBundleTypeName":"Android Studio Project
File","CFBundleTypeExtensions":["ipr"],"CFBundleTypeRole":"Editor","CFBundleTypeIconFile":"studio.icns"},{"CFBundleTypeName":"All
documents","CFBundleTypeExtensions":["*"],"CFBundleTypeOSTypes":["****"],"CFBundleTypeRole":"Editor","LSTypeIsPackage":false}],"NSSupportsAutomaticGraphicsSwitching":true,"CFBundlePackageType":"AP
PL","CFBundleIconFile":"studio.icns","NSHighResolutionCapable":true,"CFBundleShortVersionString":"3.5","CFBundleInfoDictionaryVersion":"6.0","CFBundleExecutable":"studio","LSRequiresNativeExecutio
n":"YES","CFBundleURLTypes":[{"CFBundleTypeRole":"Editor","CFBundleURLName":"Stacktrace","CFBundleURLSchemes":["idea"]}],"CFBundleIdentifier":"com.google.android.studio","LSApplicationCategoryType
":"public.app-category.developer-tools","CFBundleSignature":"????","LSMinimumSystemVersion":"10.8","CFBundleGetInfoString":"Android Studio 3.5, build AI-191.8026.42.35.5977832. Copyright JetBrains
s.r.o., (c) 2000-2019"}
[  +25 ms] executing: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java -version
[  +79 ms] Exit code 0 from: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java -version
[        ] openjdk version "1.8.0_202-release"
           OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405)
           OpenJDK 64-Bit Server VM (build 25.202-b49-5587405, mixed mode)
[   +2 ms] executing: [/Users/user/Documents/MyProjects/MyApp/app/client/android/] /Users/user/Documents/MyProjects/MyApp/app/client/android/gradlew -Pverbose=true
-Ptarget-platform=android-x86 -Ptarget=/Users/user/Documents/MyProjects/MyApp/app/client/lib/main.dart -Ptrack-widget-creation=true -Pfilesystem-scheme=org-dartlang-root assembleDebug
[ +780 ms] 
                    Compiler message:
[   +2 ms] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/top_level.dart:1:8: Error: Not found: 'dart:html'
[        ] import 'dart:html';
[        ]        ^
[ +124 ms] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/js-0.6.1+1/lib/js.dart:8:1: Error: Not found: 'dart:js'
[        ] export 'dart:js' show allowInterop, allowInteropCaptureThis;
[        ] ^
[        ] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/js-0.6.1+1/lib/js_util.dart:8:1: Error: Not found: 'dart:js_util'
[        ] export 'dart:js_util';
[        ] ^
[+3045 ms] > Task :app:compileFlutterBuildDebug
[        ] [  +26 ms] executing: [/Users/user/flutter/] git -c log.showSignature=false log -n 1 --pretty=format:%H
[        ] [  +42 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H
[   +1 ms] [        ] 3998549d529cb21488e5720a4c81cb20015e18e6
[        ] [        ] executing: [/Users/user/flutter/] git describe --match v*.*.* --first-parent --long --tags
[        ] [  +24 ms] Exit code 0 from: git describe --match v*.*.* --first-parent --long --tags
[        ] [        ] v1.16.1-26-g3998549d5
[        ] [  +10 ms] executing: [/Users/user/flutter/] git rev-parse --abbrev-ref --symbolic @{u}
[        ] [  +13 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[        ] [        ] origin/beta
[        ] [        ] executing: [/Users/user/flutter/] git ls-remote --get-url origin
[        ] [  +14 ms] Exit code 0 from: git ls-remote --get-url origin
[        ] [        ] https://github.com/flutter/flutter.git
[        ] [  +85 ms] executing: [/Users/user/flutter/] git rev-parse --abbrev-ref HEAD
[        ] [  +19 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[        ] [        ] beta
[        ] [  +30 ms] Artifact Instance of 'AndroidMavenArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[        ] [   +3 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[        ] [   +9 ms] Artifact Instance of 'MaterialFonts' is not required, skipping update.
[  +38 ms] [        ] Artifact Instance of 'GradleWrapper' is not required, skipping update.
[        ] [        ] Artifact Instance of 'AndroidMavenArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[        ] [        ] Artifact Instance of 'FlutterSdk' is not required, skipping update.
[        ] [        ] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[        ] [        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'FontSubsetArtifacts' is not required, skipping update.
[        ] [ +105 ms] Initializing file store
[        ] [   +5 ms] Done initializing file store
[        ] [ +873 ms] kernel_snapshot: Starting due to {}
[   +1 ms] [  +18 ms] /Users/user/flutter/bin/cache/dart-sdk/bin/dart /Users/user/flutter/bin/cache/artifacts/engine/darwin-x64/frontend_server.dart.snapshot --sdk-root
/Users/user/flutter/bin/cache/artifacts/engine/common/flutter_patched_sdk/ --target=flutter -Ddart.developer.causal_async_stacks=true -Ddart.vm.profile=false -Ddart.vm.product=false
--bytecode-options=source-positions,local-var-info,debugger-stops,instance-field-initializers,keep-unreachable-code,avoid-closure-call-instructions --enable-asserts --track-widget-creation
--no-link-platform --packages /Users/user/Documents/MyProjects/MyApp/app/client/.packages --output-dill
/Users/user/Documents/MyProjects/MyApp/app/client/.dart_tool/flutter_build/6b59d9bceb88d1484aeb7856588a404c/app.dill --depfile
/Users/user/Documents/MyProjects/MyApp/app/client/.dart_tool/flutter_build/6b59d9bceb88d1484aeb7856588a404c/kernel_snapshot.d package:my_app/main.dart
[   +3 ms] [  +16 ms] Invalid depfile: /Users/user/Documents/MyProjects/MyApp/app/client/.dart_tool/flutter_build/6b59d9bceb88d1484aeb7856588a404c/kernel_snapshot.d
[        ] [   +2 ms] Invalid depfile: /Users/user/Documents/MyProjects/MyApp/app/client/.dart_tool/flutter_build/6b59d9bceb88d1484aeb7856588a404c/kernel_snapshot.d
[ +822 ms] [+1168 ms] 
[        ]            Compiler message:
[        ] [        ] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/top_level.dart:1:8: Error: Not found: 'dart:html'
[        ] [        ] import 'dart:html';
[        ] [        ]        ^
[  +97 ms] [  +60 ms] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/js-0.6.1+1/lib/js.dart:8:1: Error: Not found: 'dart:js'
[        ] [        ] export 'dart:js' show allowInterop, allowInteropCaptureThis;
[        ] [        ] ^
[        ] [        ] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/js-0.6.1+1/lib/js_util.dart:8:1: Error: Not found: 'dart:js_util'
[        ] [        ] export 'dart:js_util';
[        ] [        ] ^
[ +569 ms] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/auth.dart:306:25: Error: The method 'allowInterop' isn't defined for the class 'Auth'.
[        ]  - 'Auth' is from 'package:firebase/src/auth.dart' ('../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/auth.dart').
[        ] Try correcting the name to the name of an existing method, or defining a method named 'allowInterop'.
[        ]       var nextWrapper = allowInterop((firebase_interop.UserJsImpl user) {
[        ]                         ^^^^^^^^^^^^
[        ] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/auth.dart:310:26: Error: The method 'allowInterop' isn't defined for the class 'Auth'.
[        ]  - 'Auth' is from 'package:firebase/src/auth.dart' ('../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/auth.dart').
[        ] Try correcting the name to the name of an existing method, or defining a method named 'allowInterop'.
[        ]       var errorWrapper = allowInterop((e) => _changeController.addError(e));
[        ]                          ^^^^^^^^^^^^
[        ] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/auth.dart:340:25: Error: The method 'allowInterop' isn't defined for the class 'Auth'.
[        ]  - 'Auth' is from 'package:firebase/src/auth.dart' ('../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/auth.dart').
[        ] Try correcting the name to the name of an existing method, or defining a method named 'allowInterop'.
[        ]       var nextWrapper = allowInterop((firebase_interop.UserJsImpl user) {
[        ]                         ^^^^^^^^^^^^
[        ] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/auth.dart:345:11: Error: The method 'allowInterop' isn't defined for the class 'Auth'.
[        ]  - 'Auth' is from 'package:firebase/src/auth.dart' ('../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/auth.dart').
[        ] Try correcting the name to the name of an existing method, or defining a method named 'allowInterop'.
[        ]           allowInterop((e) => _idTokenChangedController.addError(e));
[  +45 ms]           ^^^^^^^^^^^^
[        ] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/database.dart:164:9: Error: The method 'allowInterop' isn't defined for the class
'DatabaseReference<T>'.
[        ]  - 'DatabaseReference' is from 'package:firebase/src/database.dart' ('../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/database.dart').
[        ] Try correcting the name to the name of an existing method, or defining a method named 'allowInterop'.
[        ]         allowInterop((update) => jsify(transactionUpdate(dartify(update))));
[        ]         ^^^^^^^^^^^^
[        ] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/database.dart:166:26: Error: The method 'allowInterop' isn't defined for the class
'DatabaseReference<T>'.
[        ]  - 'DatabaseReference' is from 'package:firebase/src/database.dart' ('../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/database.dart').
[        ] Try correcting the name to the name of an existing method, or defining a method named 'allowInterop'.
[        ]     var onCompleteWrap = allowInterop(
[        ]                          ^^^^^^^^^^^^
[        ] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/database.dart:301:24: Error: The method 'allowInterop' isn't defined for the class 'Query<T>'.
[        ]  - 'Query' is from 'package:firebase/src/database.dart' ('../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/database.dart').
[        ] Try correcting the name to the name of an existing method, or defining a method named 'allowInterop'.
[        ]     var callbackWrap = allowInterop((database_interop.DataSnapshotJsImpl data,
[        ]                        ^^^^^^^^^^^^
[        ] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/database.dart:325:30: Error: The method 'allowInterop' isn't defined for the class 'Query<T>'.
[        ]  - 'Query' is from 'package:firebase/src/database.dart' ('../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/database.dart').
[        ] Try correcting the name to the name of an existing method, or defining a method named 'allowInterop'.
[        ]     jsObject.once(eventType, allowInterop(
[        ]                              ^^^^^^^^^^^^
[        ] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/database.dart:402:22: Error: The method 'allowInterop' isn't defined for the class 'DataSnapshot'.
[        ]  - 'DataSnapshot' is from 'package:firebase/src/database.dart' ('../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/database.dart').
[        ] Try correcting the name to the name of an existing method, or defining a method named 'allowInterop'.
[        ]     var actionWrap = allowInterop((d) => action(DataSnapshot.getInstance(d)));
[        ]                      ^^^^^^^^^^^^
[        ] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/messaging.dart:72:27: Error: The method 'allowInterop' isn't defined for the class 'Messaging'.
[        ]  - 'Messaging' is from 'package:firebase/src/messaging.dart' ('../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/messaging.dart').
[        ] Try correcting the name to the name of an existing method, or defining a method named 'allowInterop'.
[        ]       final nextWrapper = allowInterop((payload) {
[        ]                           ^^^^^^^^^^^^
[        ] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/messaging.dart:75:28: Error: The method 'allowInterop' isn't defined for the class 'Messaging'.
[        ]  - 'Messaging' is from 'package:firebase/src/messaging.dart' ('../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/messaging.dart').
[        ] Try correcting the name to the name of an existing method, or defining a method named 'allowInterop'.
[        ]       final errorWrapper = allowInterop((e) {
[        ]                            ^^^^^^^^^^^^
[        ] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/messaging.dart:87:27: Error: The method 'allowInterop' isn't defined for the class 'Messaging'.
[        ]  - 'Messaging' is from 'package:firebase/src/messaging.dart' ('../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/messaging.dart').
[        ] Try correcting the name to the name of an existing method, or defining a method named 'allowInterop'.
[        ]       final nextWrapper = allowInterop((payload) {
[        ]                           ^^^^^^^^^^^^
[        ] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/messaging.dart:97:27: Error: The method 'allowInterop' isn't defined for the class 'Messaging'.
[        ]  - 'Messaging' is from 'package:firebase/src/messaging.dart' ('../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/messaging.dart').
[        ] Try correcting the name to the name of an existing method, or defining a method named 'allowInterop'.
[        ]       final nextWrapper = allowInterop((_) => null);
[        ]                           ^^^^^^^^^^^^
[        ] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/messaging.dart:98:28: Error: The method 'allowInterop' isn't defined for the class 'Messaging'.
[        ]  - 'Messaging' is from 'package:firebase/src/messaging.dart' ('../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/messaging.dart').
[        ] Try correcting the name to the name of an existing method, or defining a method named 'allowInterop'.
[        ]       final errorWrapper = allowInterop((e) {
[        ]                            ^^^^^^^^^^^^
[        ] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/storage.dart:317:11: Error: The method 'allowInterop' isn't defined for the class 'UploadTask'.
[        ]  - 'UploadTask' is from 'package:firebase/src/storage.dart' ('../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/storage.dart').
[        ] Try correcting the name to the name of an existing method, or defining a method named 'allowInterop'.
[        ]           allowInterop((storage_interop.UploadTaskSnapshotJsImpl data) {
[        ]           ^^^^^^^^^^^^
[        ] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/storage.dart:321:26: Error: The method 'allowInterop' isn't defined for the class 'UploadTask'.
[        ]  - 'UploadTask' is from 'package:firebase/src/storage.dart' ('../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/storage.dart').
[        ] Try correcting the name to the name of an existing method, or defining a method named 'allowInterop'.
[        ]       var errorWrapper = allowInterop((e) => _changeController.addError(e));
[        ]                          ^^^^^^^^^^^^
[        ] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/storage.dart:322:26: Error: The method 'allowInterop' isn't defined for the class 'UploadTask'.
[        ]  - 'UploadTask' is from 'package:firebase/src/storage.dart' ('../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/storage.dart').
[        ] Try correcting the name to the name of an existing method, or defining a method named 'allowInterop'.
[        ]       var onCompletion = allowInterop(() => _changeController.close());
[        ]                          ^^^^^^^^^^^^
[        ] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/top_level.dart:194:7: Error: Method not found: 'hasProperty'.
[        ]   if (js.hasProperty(error, 'message')) {
[        ]       ^^^^^^^^^^^
[        ] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/top_level.dart:195:19: Error: Method not found: 'getProperty'.
[        ]     var message = js.getProperty(error, 'message');
[        ]                   ^^^^^^^^^^^
[   +5 ms] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/utils.dart:29:7: Error: Method not found: 'hasProperty'.
[        ]   if (util.hasProperty(jsObject, 'firestore') &&
[  +56 ms]       ^^^^^^^^^^^
[        ] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/utils.dart:30:7: Error: Method not found: 'hasProperty'.
[        ]       util.hasProperty(jsObject, 'id') &&
[        ]       ^^^^^^^^^^^
[        ] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/utils.dart:31:7: Error: Method not found: 'hasProperty'.
[        ]       util.hasProperty(jsObject, 'parent')) {
[        ]       ^^^^^^^^^^^
[        ] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/utils.dart:37:7: Error: Method not found: 'hasProperty'.
[        ]   if (util.hasProperty(jsObject, 'latitude') &&
[        ]       ^^^^^^^^^^^
[        ] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/utils.dart:38:7: Error: Method not found: 'hasProperty'.
[        ]       util.hasProperty(jsObject, 'longitude') &&
[        ]       ^^^^^^^^^^^
[        ] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/utils.dart:44:15: Error: Method not found: 'getProperty'.
[        ]   var proto = util.getProperty(jsObject, '__proto__');
[        ]               ^^^^^^^^^^^
[        ] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/utils.dart:46:7: Error: Method not found: 'hasProperty'.
[   +3 ms]   if (util.hasProperty(proto, 'toDate') &&
[        ]       ^^^^^^^^^^^
[        ] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/utils.dart:47:7: Error: Method not found: 'hasProperty'.
[        ]       util.hasProperty(proto, 'toMillis')) {
[        ]       ^^^^^^^^^^^
[        ] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/utils.dart:52:7: Error: Method not found: 'hasProperty'.
[        ]   if (util.hasProperty(proto, 'isEqual') &&
[        ]       ^^^^^^^^^^^
[        ] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/utils.dart:53:7: Error: Method not found: 'hasProperty'.
[  +43 ms]       util.hasProperty(proto, 'toBase64')) {
[        ]       ^^^^^^^^^^^
[        ] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/utils.dart:67:24: Error: Method not found: 'getProperty'.
[        ]     map[key] = dartify(util.getProperty(jsObject, key));
[        ]                        ^^^^^^^^^^^
[        ] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/utils.dart:91:17: Error: Method not found: 'newObject'.
[        ]     var jsMap = util.newObject();
[        ]                 ^^^^^^^^^
[        ] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/utils.dart:93:7: Error: Method not found: 'setProperty'.
[        ]       util.setProperty(jsMap, key, jsify(value));
[        ]       ^^^^^^^^^^^
[        ] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/utils.dart:116:12: Error: Method not found: 'allowInterop'.
[        ]     return allowInterop(dartObject);
[        ]            ^^^^^^^^^^^^
[        ] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/utils.dart:124:5: Error: Method not found: 'callMethod'.
[        ]     util.callMethod(jsObject, method, args);
[        ]     ^^^^^^^^^^
[        ] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/utils.dart:139:19: Error: Method not found: 'promiseToFuture'.
[        ]     value = await util.promiseToFuture(thenable);
[        ]                   ^^^^^^^^^^^^^^^
[  +64 ms] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/utils.dart:141:9: Error: Method not found: 'hasProperty'.
[        ]     if (util.hasProperty(e, 'code')) {
[        ]         ^^^^^^^^^^^
[        ] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/utils.dart:152:27: Error: Method not found: 'allowInterop'.
[        ]   return PromiseJsImpl<S>(allowInterop((
[        ]                           ^^^^^^^^^^^^
[        ] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/utils.dart:165:5: Error: Method not found: 'allowInterop'.
[        ]     allowInterop(c.completeError);
[        ]     ^^^^^^^^^^^^
[        ] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/utils.dart:173:22: Error: Method not found: 'getProperty'.
[   +8 ms]   String get code => util.getProperty(_source, 'code');
[        ]                      ^^^^^^^^^^^
[        ] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/utils.dart:176:25: Error: Method not found: 'getProperty'.
[        ]   String get message => util.getProperty(_source, 'message');
[        ]                         ^^^^^^^^^^^
[        ] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/utils.dart:179:22: Error: Method not found: 'getProperty'.
[        ]   String get name => util.getProperty(_source, 'name');
[        ]                      ^^^^^^^^^^^
[        ] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/utils.dart:182:32: Error: Method not found: 'getProperty'.
[        ]   Object get serverResponse => util.getProperty(_source, 'serverResponse');
[        ]                                ^^^^^^^^^^^
[        ] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/utils.dart:185:23: Error: Method not found: 'getProperty'.
[        ]   String get stack => util.getProperty(_source, 'stack');
[   +2 ms]                       ^^^^^^^^^^^
[        ] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/firestore.dart:105:30: Error: The method 'allowInterop' isn't defined for the class 'Firestore'.
[        ]  - 'Firestore' is from 'package:firebase/src/firestore.dart' ('../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/firestore.dart').
[        ] Try correcting the name to the name of an existing method, or defining a method named 'allowInterop'.
[        ]     var updateFunctionWrap = allowInterop((transaction) =>
[        ]                              ^^^^^^^^^^^^
[        ] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/firestore.dart:306:11: Error: The method 'allowInterop' isn't defined for the class 'DocumentReference'.
[   +1 ms]  - 'DocumentReference' is from 'package:firebase/src/firestore.dart' ('../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/firestore.dart').
[        ] Try correcting the name to the name of an existing method, or defining a method named 'allowInterop'.
[        ]           allowInterop((firestore_interop.DocumentSnapshotJsImpl snapshot) {
[        ]           ^^^^^^^^^^^^
[        ] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/firestore.dart:310:26: Error: The method 'allowInterop' isn't defined for the class 'DocumentReference'.
[   +8 ms]  - 'DocumentReference' is from 'package:firebase/src/firestore.dart' ('../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/firestore.dart').
[        ] Try correcting the name to the name of an existing method, or defining a method named 'allowInterop'.
[  +69 ms]       var errorWrapper = allowInterop((e) => controller.addError(e));
[        ]                          ^^^^^^^^^^^^
[        ] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/firestore.dart:445:9: Error: The method 'allowInterop' isn't defined for the class 'Query<T>'.
[        ]  - 'Query' is from 'package:firebase/src/firestore.dart' ('../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/firestore.dart').
[        ] Try correcting the name to the name of an existing method, or defining a method named 'allowInterop'.
[        ]         allowInterop((firestore_interop.QuerySnapshotJsImpl snapshot) {
[        ]         ^^^^^^^^^^^^
[        ] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/firestore.dart:449:24: Error: The method 'allowInterop' isn't defined for the class 'Query<T>'.
[  +95 ms]  - 'Query' is from 'package:firebase/src/firestore.dart' ('../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/firestore.dart').
[        ] Try correcting the name to the name of an existing method, or defining a method named 'allowInterop'.
[        ]     var errorWrapper = allowInterop((e) => controller.addError(e));
[        ]                        ^^^^^^^^^^^^
[        ] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/firestore.dart:775:9: Error: The method 'allowInterop' isn't defined for the class 'QuerySnapshot'.
[        ]  - 'QuerySnapshot' is from 'package:firebase/src/firestore.dart' ('../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/firestore.dart').
[        ] Try correcting the name to the name of an existing method, or defining a method named 'allowInterop'.
[   +3 ms]         allowInterop((s) => callback(DocumentSnapshot.getInstance(s)));
[        ]         ^^^^^^^^^^^^
[        ] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/interop/js_interop.dart:17:7: Error: Method not found: 'hasProperty'.
[        ]   if (util.hasProperty(jsObject, 'toDateString')) {
[        ]       ^^^^^^^^^^^
[+3378 ms] [+4457 ms] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/auth.dart:306:25: Error: The method 'allowInterop' isn't defined for the class 'Auth'.
[        ] [        ]  - 'Auth' is from 'package:firebase/src/auth.dart' ('../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/auth.dart').
[        ] [        ] Try correcting the name to the name of an existing method, or defining a method named 'allowInterop'.
[        ] [        ]       var nextWrapper = allowInterop((firebase_interop.UserJsImpl user) {
[        ] [        ]                         ^^^^^^^^^^^^
[        ] [        ] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/auth.dart:310:26: Error: The method 'allowInterop' isn't defined for the class 'Auth'.
[        ] [        ]  - 'Auth' is from 'package:firebase/src/auth.dart' ('../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/auth.dart').
[        ] [        ] Try correcting the name to the name of an existing method, or defining a method named 'allowInterop'.
[        ] [        ]       var errorWrapper = allowInterop((e) => _changeController.addError(e));
[        ] [        ]                          ^^^^^^^^^^^^
[        ] [        ] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/auth.dart:340:25: Error: The method 'allowInterop' isn't defined for the class 'Auth'.
[        ] [        ]  - 'Auth' is from 'package:firebase/src/auth.dart' ('../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/auth.dart').
[        ] [        ] Try correcting the name to the name of an existing method, or defining a method named 'allowInterop'.
[        ] [        ]       var nextWrapper = allowInterop((firebase_interop.UserJsImpl user) {
[        ] [        ]                         ^^^^^^^^^^^^
[        ] [        ] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/auth.dart:345:11: Error: The method 'allowInterop' isn't defined for the class 'Auth'.
[        ] [        ]  - 'Auth' is from 'package:firebase/src/auth.dart' ('../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/auth.dart').
[  +62 ms] [        ] Try correcting the name to the name of an existing method, or defining a method named 'allowInterop'.
[        ] [        ]           allowInterop((e) => _idTokenChangedController.addError(e));
[        ] [        ]           ^^^^^^^^^^^^
[        ] [   +7 ms] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/database.dart:164:9: Error: The method 'allowInterop' isn't defined for the class
'DatabaseReference<T>'.
[        ] [        ]  - 'DatabaseReference' is from 'package:firebase/src/database.dart' ('../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/database.dart').
[        ] [        ] Try correcting the name to the name of an existing method, or defining a method named 'allowInterop'.
[   +1 ms] [        ]         allowInterop((update) => jsify(transactionUpdate(dartify(update))));
[        ] [        ]         ^^^^^^^^^^^^
[        ] [        ] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/database.dart:166:26: Error: The method 'allowInterop' isn't defined for the class
'DatabaseReference<T>'.
[        ] [        ]  - 'DatabaseReference' is from 'package:firebase/src/database.dart' ('../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/database.dart').
[   +1 ms] [        ] Try correcting the name to the name of an existing method, or defining a method named 'allowInterop'.
[        ] [        ]     var onCompleteWrap = allowInterop(
[        ] [        ]                          ^^^^^^^^^^^^
[        ] [        ] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/database.dart:301:24: Error: The method 'allowInterop' isn't defined for the class
'Query<T>'.
[  +59 ms] [        ]  - 'Query' is from 'package:firebase/src/database.dart' ('../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/database.dart').
[        ] [        ] Try correcting the name to the name of an existing method, or defining a method named 'allowInterop'.
[        ] [        ]     var callbackWrap = allowInterop((database_interop.DataSnapshotJsImpl data,
[        ] [        ]                        ^^^^^^^^^^^^
[        ] [        ] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/database.dart:325:30: Error: The method 'allowInterop' isn't defined for the class
'Query<T>'.
[        ] [        ]  - 'Query' is from 'package:firebase/src/database.dart' ('../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/database.dart').
[        ] [        ] Try correcting the name to the name of an existing method, or defining a method named 'allowInterop'.
[        ] [        ]     jsObject.once(eventType, allowInterop(
[        ] [        ]                              ^^^^^^^^^^^^
[        ] [        ] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/database.dart:402:22: Error: The method 'allowInterop' isn't defined for the class
'DataSnapshot'.
[        ] [        ]  - 'DataSnapshot' is from 'package:firebase/src/database.dart' ('../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/database.dart').
[  +61 ms] [        ] Try correcting the name to the name of an existing method, or defining a method named 'allowInterop'.
[        ] [        ]     var actionWrap = allowInterop((d) => action(DataSnapshot.getInstance(d)));
[        ] [        ]                      ^^^^^^^^^^^^
[        ] [   +2 ms] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/messaging.dart:72:27: Error: The method 'allowInterop' isn't defined for the class
'Messaging'.
[        ] [        ]  - 'Messaging' is from 'package:firebase/src/messaging.dart' ('../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/messaging.dart').
[        ] [        ] Try correcting the name to the name of an existing method, or defining a method named 'allowInterop'.
[        ] [        ]       final nextWrapper = allowInterop((payload) {
[        ] [        ]                           ^^^^^^^^^^^^
[        ] [        ] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/messaging.dart:75:28: Error: The method 'allowInterop' isn't defined for the class
'Messaging'.
[        ] [        ]  - 'Messaging' is from 'package:firebase/src/messaging.dart' ('../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/messaging.dart').
[        ] [        ] Try correcting the name to the name of an existing method, or defining a method named 'allowInterop'.
[        ] [        ]       final errorWrapper = allowInterop((e) {
[        ] [        ]                            ^^^^^^^^^^^^
[        ] [        ] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/messaging.dart:87:27: Error: The method 'allowInterop' isn't defined for the class
'Messaging'.
[        ] [        ]  - 'Messaging' is from 'package:firebase/src/messaging.dart' ('../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/messaging.dart').
[        ] [        ] Try correcting the name to the name of an existing method, or defining a method named 'allowInterop'.
[        ] [        ]       final nextWrapper = allowInterop((payload) {
[        ] [        ]                           ^^^^^^^^^^^^
[        ] [        ] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/messaging.dart:97:27: Error: The method 'allowInterop' isn't defined for the class
'Messaging'.
[        ] [        ]  - 'Messaging' is from 'package:firebase/src/messaging.dart' ('../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/messaging.dart').
[        ] [        ] Try correcting the name to the name of an existing method, or defining a method named 'allowInterop'.
[        ] [        ]       final nextWrapper = allowInterop((_) => null);
[        ] [        ]                           ^^^^^^^^^^^^
[        ] [        ] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/messaging.dart:98:28: Error: The method 'allowInterop' isn't defined for the class
'Messaging'.
[        ] [        ]  - 'Messaging' is from 'package:firebase/src/messaging.dart' ('../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/messaging.dart').
[        ] [        ] Try correcting the name to the name of an existing method, or defining a method named 'allowInterop'.
[        ] [        ]       final errorWrapper = allowInterop((e) {
[        ] [        ]                            ^^^^^^^^^^^^
[        ] [   +9 ms] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/storage.dart:317:11: Error: The method 'allowInterop' isn't defined for the class
'UploadTask'.
[        ] [        ]  - 'UploadTask' is from 'package:firebase/src/storage.dart' ('../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/storage.dart').
[        ] [        ] Try correcting the name to the name of an existing method, or defining a method named 'allowInterop'.
[        ] [        ]           allowInterop((storage_interop.UploadTaskSnapshotJsImpl data) {
[        ] [        ]           ^^^^^^^^^^^^
[        ] [        ] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/storage.dart:321:26: Error: The method 'allowInterop' isn't defined for the class
'UploadTask'.
[        ] [        ]  - 'UploadTask' is from 'package:firebase/src/storage.dart' ('../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/storage.dart').
[        ] [        ] Try correcting the name to the name of an existing method, or defining a method named 'allowInterop'.
[  +50 ms] [        ]       var errorWrapper = allowInterop((e) => _changeController.addError(e));
[        ] [        ]                          ^^^^^^^^^^^^
[        ] [        ] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/storage.dart:322:26: Error: The method 'allowInterop' isn't defined for the class
'UploadTask'.
[        ] [        ]  - 'UploadTask' is from 'package:firebase/src/storage.dart' ('../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/storage.dart').
[        ] [        ] Try correcting the name to the name of an existing method, or defining a method named 'allowInterop'.
[        ] [        ]       var onCompletion = allowInterop(() => _changeController.close());
[        ] [        ]                          ^^^^^^^^^^^^
[  +58 ms] [   +4 ms] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/top_level.dart:194:7: Error: Method not found: 'hasProperty'.
[        ] [        ]   if (js.hasProperty(error, 'message')) {
[        ] [        ]       ^^^^^^^^^^^
[        ] [        ] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/top_level.dart:195:19: Error: Method not found: 'getProperty'.
[        ] [   +1 ms]     var message = js.getProperty(error, 'message');
[        ] [        ]                   ^^^^^^^^^^^
[        ] [  +29 ms] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/utils.dart:29:7: Error: Method not found: 'hasProperty'.
[        ] [        ]   if (util.hasProperty(jsObject, 'firestore') &&
[        ] [        ]       ^^^^^^^^^^^
[  +87 ms] [   +2 ms] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/utils.dart:30:7: Error: Method not found: 'hasProperty'.
[        ] [        ]       util.hasProperty(jsObject, 'id') &&
[        ] [        ]       ^^^^^^^^^^^
[        ] [        ] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/utils.dart:31:7: Error: Method not found: 'hasProperty'.
[        ] [        ]       util.hasProperty(jsObject, 'parent')) {
[        ] [        ]       ^^^^^^^^^^^
[        ] [        ] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/utils.dart:37:7: Error: Method not found: 'hasProperty'.
[        ] [        ]   if (util.hasProperty(jsObject, 'latitude') &&
[        ] [        ]       ^^^^^^^^^^^
[        ] [        ] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/utils.dart:38:7: Error: Method not found: 'hasProperty'.
[        ] [        ]       util.hasProperty(jsObject, 'longitude') &&
[        ] [        ]       ^^^^^^^^^^^
[        ] [        ] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/utils.dart:44:15: Error: Method not found: 'getProperty'.
[        ] [        ]   var proto = util.getProperty(jsObject, '__proto__');
[        ] [        ]               ^^^^^^^^^^^
[        ] [        ] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/utils.dart:46:7: Error: Method not found: 'hasProperty'.
[        ] [        ]   if (util.hasProperty(proto, 'toDate') &&
[        ] [        ]       ^^^^^^^^^^^
[        ] [        ] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/utils.dart:47:7: Error: Method not found: 'hasProperty'.
[        ] [        ]       util.hasProperty(proto, 'toMillis')) {
[        ] [        ]       ^^^^^^^^^^^
[        ] [        ] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/utils.dart:52:7: Error: Method not found: 'hasProperty'.
[        ] [        ]   if (util.hasProperty(proto, 'isEqual') &&
[        ] [        ]       ^^^^^^^^^^^
[        ] [        ] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/utils.dart:53:7: Error: Method not found: 'hasProperty'.
[        ] [        ]       util.hasProperty(proto, 'toBase64')) {
[        ] [        ]       ^^^^^^^^^^^
[        ] [        ] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/utils.dart:67:24: Error: Method not found: 'getProperty'.
[        ] [        ]     map[key] = dartify(util.getProperty(jsObject, key));
[        ] [        ]                        ^^^^^^^^^^^
[        ] [        ] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/utils.dart:91:17: Error: Method not found: 'newObject'.
[        ] [        ]     var jsMap = util.newObject();
[        ] [        ]                 ^^^^^^^^^
[        ] [        ] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/utils.dart:93:7: Error: Method not found: 'setProperty'.
[        ] [        ]       util.setProperty(jsMap, key, jsify(value));
[   +1 ms] [   +1 ms]       ^^^^^^^^^^^
[        ] [        ] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/utils.dart:116:12: Error: Method not found: 'allowInterop'.
[        ] [        ]     return allowInterop(dartObject);
[        ] [        ]            ^^^^^^^^^^^^
[        ] [        ] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/utils.dart:124:5: Error: Method not found: 'callMethod'.
[        ] [        ]     util.callMethod(jsObject, method, args);
[        ] [        ]     ^^^^^^^^^^
[        ] [        ] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/utils.dart:139:19: Error: Method not found: 'promiseToFuture'.
[        ] [        ]     value = await util.promiseToFuture(thenable);
[        ] [        ]                   ^^^^^^^^^^^^^^^
[        ] [        ] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/utils.dart:141:9: Error: Method not found: 'hasProperty'.
[        ] [        ]     if (util.hasProperty(e, 'code')) {
[        ] [   +1 ms]         ^^^^^^^^^^^
[        ] [        ] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/utils.dart:152:27: Error: Method not found: 'allowInterop'.
[        ] [        ]   return PromiseJsImpl<S>(allowInterop((
[        ] [        ]                           ^^^^^^^^^^^^
[        ] [        ] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/utils.dart:165:5: Error: Method not found: 'allowInterop'.
[        ] [        ]     allowInterop(c.completeError);
[        ] [        ]     ^^^^^^^^^^^^
[        ] [        ] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/utils.dart:173:22: Error: Method not found: 'getProperty'.
[        ] [        ]   String get code => util.getProperty(_source, 'code');
[        ] [        ]                      ^^^^^^^^^^^
[        ] [        ] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/utils.dart:176:25: Error: Method not found: 'getProperty'.
[        ] [        ]   String get message => util.getProperty(_source, 'message');
[        ] [        ]                         ^^^^^^^^^^^
[        ] [        ] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/utils.dart:179:22: Error: Method not found: 'getProperty'.
[        ] [        ]   String get name => util.getProperty(_source, 'name');
[        ] [        ]                      ^^^^^^^^^^^
[        ] [        ] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/utils.dart:182:32: Error: Method not found: 'getProperty'.
[        ] [        ]   Object get serverResponse => util.getProperty(_source, 'serverResponse');
[        ] [        ]                                ^^^^^^^^^^^
[        ] [        ] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/utils.dart:185:23: Error: Method not found: 'getProperty'.
[        ] [        ]   String get stack => util.getProperty(_source, 'stack');
[        ] [        ]                       ^^^^^^^^^^^
[        ] [        ] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/firestore.dart:105:30: Error: The method 'allowInterop' isn't defined for the class
'Firestore'.
[        ] [        ]  - 'Firestore' is from 'package:firebase/src/firestore.dart' ('../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/firestore.dart').
[        ] [        ] Try correcting the name to the name of an existing method, or defining a method named 'allowInterop'.
[        ] [        ]     var updateFunctionWrap = allowInterop((transaction) =>
[        ] [        ]                              ^^^^^^^^^^^^
[        ] [   +3 ms] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/firestore.dart:306:11: Error: The method 'allowInterop' isn't defined for the class
'DocumentReference'.
[  +47 ms] [        ]  - 'DocumentReference' is from 'package:firebase/src/firestore.dart' ('../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/firestore.dart').
[   +1 ms] [        ] Try correcting the name to the name of an existing method, or defining a method named 'allowInterop'.
[        ] [        ]           allowInterop((firestore_interop.DocumentSnapshotJsImpl snapshot) {
[        ] [        ]           ^^^^^^^^^^^^
[        ] [        ] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/firestore.dart:310:26: Error: The method 'allowInterop' isn't defined for the class
'DocumentReference'.
[        ] [        ]  - 'DocumentReference' is from 'package:firebase/src/firestore.dart' ('../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/firestore.dart').
[        ] [        ] Try correcting the name to the name of an existing method, or defining a method named 'allowInterop'.
[        ] [        ]       var errorWrapper = allowInterop((e) => controller.addError(e));
[        ] [        ]                          ^^^^^^^^^^^^
[        ] [        ] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/firestore.dart:445:9: Error: The method 'allowInterop' isn't defined for the class
'Query<T>'.
[  +45 ms] [        ]  - 'Query' is from 'package:firebase/src/firestore.dart' ('../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/firestore.dart').
[        ] [        ] Try correcting the name to the name of an existing method, or defining a method named 'allowInterop'.
[        ] [        ]         allowInterop((firestore_interop.QuerySnapshotJsImpl snapshot) {
[        ] [        ]         ^^^^^^^^^^^^
[        ] [        ] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/firestore.dart:449:24: Error: The method 'allowInterop' isn't defined for the class
'Query<T>'.
[        ] [        ]  - 'Query' is from 'package:firebase/src/firestore.dart' ('../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/firestore.dart').
[        ] [        ] Try correcting the name to the name of an existing method, or defining a method named 'allowInterop'.
[        ] [        ]     var errorWrapper = allowInterop((e) => controller.addError(e));
[        ] [        ]                        ^^^^^^^^^^^^
[   +1 ms] [   +5 ms] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/firestore.dart:775:9: Error: The method 'allowInterop' isn't defined for the class
'QuerySnapshot'.
[        ] [        ]  - 'QuerySnapshot' is from 'package:firebase/src/firestore.dart' ('../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/firestore.dart').
[        ] [        ] Try correcting the name to the name of an existing method, or defining a method named 'allowInterop'.
[  +47 ms] [        ]         allowInterop((s) => callback(DocumentSnapshot.getInstance(s)));
[        ] [        ]         ^^^^^^^^^^^^
[        ] [  +13 ms] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/interop/js_interop.dart:17:7: Error: Method not found: 'hasProperty'.
[        ] [        ]   if (util.hasProperty(jsObject, 'toDateString')) {
[        ] [        ]       ^^^^^^^^^^^
[+2023 ms] [+2408 ms] Unhandled exception:
[        ]            FileSystemException(uri=org-dartlang-untranslatable-uri:dart%3Ahtml; message=StandardFileSystem only supports file:* and data:* URIs)
[        ]            #0      StandardFileSystem.entityForUri (package:front_end/src/api_prototype/standard_file_system.dart:33:7)
[        ]            #1      asFileUri (package:vm/kernel_front_end.dart:567:37)
[        ]            #2      writeDepfile (package:vm/kernel_front_end.dart:760:21)
[        ]            <asynchronous suspension>
[        ]            #3      FrontendCompiler.compile (package:frontend_server/frontend_server.dart:535:15)
[        ]            <asynchronous suspension>
[        ]            #4      _FlutterFrontendCompiler.compile (package:flutter_frontend_server/server.dart:40:22)
[        ]            #5      starter (package:flutter_frontend_server/server.dart:177:27)
[        ]            #6      main (file:///b/s/w/ir/cache/builder/src/flutter/flutter_frontend_server/bin/starter.dart:8:30)
[        ]            #7      _startIsolate.<anonymous closure> (dart:isolate-patch/isolate_patch.dart:299:32)
[        ]            #8      _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:168:12)
[  +95 ms] [ +162 ms] Persisting file store
[        ] [   +5 ms] Done persisting file store
[        ] [        ] Target kernel_snapshot failed: Exception: Errors during snapshot creation: null
[  +98 ms] [   +9 ms] "flutter assemble" took 9,494ms.
[        ] build failed.
[        ] #0      throwToolExit (package:flutter_tools/src/base/common.dart:14:3)
[        ] #1      AssembleCommand.runCommand (package:flutter_tools/src/commands/assemble.dart:193:7)
[        ] #2      _rootRunUnary (dart:async/zone.dart:1141:38)
[        ] #3      _CustomZone.runUnary (dart:async/zone.dart:1034:19)
[        ] #4      _FutureListener.handleValue (dart:async/future_impl.dart:140:18)
[        ] #5      Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:681:45)
[        ] #6      Future._propagateToListeners (dart:async/future_impl.dart:710:32)
[        ] #7      Future._completeWithValue (dart:async/future_impl.dart:525:5)
[        ] #8      _AsyncAwaitCompleter.complete (dart:async-patch/async_patch.dart:34:15)
[        ] #9      _completeOnAsyncReturn (dart:async-patch/async_patch.dart:294:13)
[        ] #10     BuildSystem.build (package:flutter_tools/src/build_system/build_system.dart)
[        ] #11     _rootRunUnary (dart:async/zone.dart:1141:38)
[        ] #12     _CustomZone.runUnary (dart:async/zone.dart:1034:19)
[        ] #13     _FutureListener.handleValue (dart:async/future_impl.dart:140:18)
[        ] #14     Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:681:45)
[        ] #15     Future._propagateToListeners (dart:async/future_impl.dart:710:32)
[        ] #16     Future._completeWithValue (dart:async/future_impl.dart:525:5)
[        ] #17     _AsyncAwaitCompleter.complete (dart:async-patch/async_patch.dart:34:15)
[        ] #18     _completeOnAsyncReturn (dart:async-patch/async_patch.dart:294:13)
[        ] #19     _BuildInstance.invokeTarget (package:flutter_tools/src/build_system/build_system.dart)
[        ] #20     _rootRunUnary (dart:async/zone.dart:1141:38)
[        ] #21     _CustomZone.runUnary (dart:async/zone.dart:1034:19)
[  +38 ms] #22     _FutureListener.handleValue (dart:async/future_impl.dart:140:18)
[        ] #23     Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:681:45)
[        ] #24     Future._propagateToListeners (dart:async/future_impl.dart:710:32)
[        ] #25     Future._completeWithValue (dart:async/future_impl.dart:525:5)
[        ] #26     Future.wait.<anonymous closure> (dart:async/future.dart:401:22)
[        ] #27     _rootRunUnary (dart:async/zone.dart:1141:38)
[        ] #28     _CustomZone.runUnary (dart:async/zone.dart:1034:19)
[        ] #29     _FutureListener.handleValue (dart:async/future_impl.dart:140:18)
[        ] #30     Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:681:45)
[        ] #31     Future._propagateToListeners (dart:async/future_impl.dart:710:32)
[  +32 ms] #32     Future._completeWithValue (dart:async/future_impl.dart:525:5)
[        ] #33     _AsyncAwaitCompleter.complete (dart:async-patch/async_patch.dart:34:15)
[        ] #34     _completeOnAsyncReturn (dart:async-patch/async_patch.dart:294:13)
[        ] #35     _BuildInstance._invokeInternal (package:flutter_tools/src/build_system/build_system.dart)
[        ] #36     _asyncErrorWrapperHelper.<anonymous closure> (dart:async-patch/async_patch.dart:82:45)
[        ] #37     _rootRunBinary (dart:async/zone.dart:1153:38)
[        ] #38     _CustomZone.runBinary (dart:async/zone.dart:1042:19)
[        ] #39     _FutureListener.handleError (dart:async/future_impl.dart:154:20)

@iapicca iapicca added c: crash Stack traces logged to the console tool Affects the "flutter" command-line tool. See also t: labels. platform-web Web applications specifically and removed in triage Presently being triaged by the triage team waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds labels Mar 23, 2020
@jmagman
Copy link
Member

jmagman commented Mar 23, 2020

#52763

@jmagman jmagman added this to Awaiting triage in Tools - web review via automation Mar 23, 2020
@jonahwilliams
Copy link
Member

This error is almost certainly caused by depending on web only code in a mobile flutter application. If you think this is a bug with tooling then we'll need an example project that reproduces the issue

@jonahwilliams jonahwilliams added the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label Mar 25, 2020
@jonahwilliams jonahwilliams moved this from Awaiting triage to Engineer reviewed in Tools - web review Mar 25, 2020
@agordeev
Copy link
Contributor Author

agordeev commented Mar 26, 2020

This is definitely an issue with dependencies, but I don't explicitly depend on web only code in my app.
Also it looks to appear only on complex projects with many dependencies.

As you can see from my pubspec.yaml, there's no web packages.

@Pherne
Copy link

Pherne commented Mar 26, 2020

I had the exact same issue. My problem was that I imported package:url_launcher_web/url_launcher_web.dart which apparently you're not supposed to do. It was an unused import anyway, so I removed it and then my mobile and web app worked fine.

@agordeev
Copy link
Contributor Author

I don't have that one. But I do have firebase_core_web and similar in my Podfile.lock

@softmarshmallow
Copy link

I had the exact same issue. My problem was that I imported package:url_launcher_web/url_launcher_web.dart which apparently you're not supposed to do. It was an unused import anyway, so I removed it and then my mobile and web app worked fine.

my case i also have url_launcher_web. but only on pubspec, i do not import it in actual project file, but still build error will be raised

@iapicca iapicca removed the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label Apr 3, 2020
@yjbanov
Copy link
Contributor

yjbanov commented Apr 9, 2020

/cc @ferhatb please dedupe

@ferhatb
Copy link
Contributor

ferhatb commented Apr 10, 2020

Checked, other issues not dupe. /cc @ditman @jonahwilliams : Do you know what would cause firebase_top_level.dart to be compiled in native builds?

@ditman
Copy link
Member

ditman commented Apr 10, 2020

@agordeev This is definitely an issue with dependencies, but I don't explicitly depend on web only code in my app.

The firebase package is web-only, somehow you're (or some of your dependencies are) depending on it in a code-path when compiling for mobile. Maybe the IDE added a spurious import of something that you're not directly depending of?

@agordeev can you please trying to see if you have imports from package:firebase in your application code? Also, can you try doing a flutter clean and switching to flutter channel master (or dev) and see if the issue disappears? (This is hard to debug without being able to trace all your imports.)

Another thing, @jonahwilliams: Didn't we have some problems a few weeks ago where conditional imports were not working properly? Any possibility that issue creeped into beta?

@agordeev
Copy link
Contributor Author

agordeev commented Apr 11, 2020

@ditman this happens on master as well.

I figured that out: the issue was caused by import 'package:firebase/firebase.dart'; in my own core package, which is a dependency for my app. I used it to access FirebaseError.

Thank you all for helping.

@majedqatousa
Copy link

@ditman this happens on master as well.

I figured that out: the issue was caused by import 'package:firebase/firebase.dart'; in my own core package, which is a dependency for my app. I used it to access FirebaseError.

Thank you all for helping.

what is the solution in this case ?

@ditman
Copy link
Member

ditman commented Apr 17, 2020

@ditman this happens on master as well.
I figured that out: the issue was caused by import 'package:firebase/firebase.dart'; in my own core package, which is a dependency for my app. I used it to access FirebaseError.
Thank you all for helping.

what is the solution in this case ?

@majedqatousa the solution for now is: do not import web-only libraries in code that is supposed to run in mobile.

(Normally you can tell what platforms a package supports by looking at their pub.dev page, for example check package:firebase, it only lists DART: JS and FLUTTER: WEB as platforms. Compare with package:http, which lists DART: NATIVE, JS, and FLUTTER: ANDROID, IOS, WEB)

@jdeltoft
Copy link

I'm getting this error when I try to use the same code base with websockets for web and firebase for app. I have some code that pulls in this:

import 'package:web_socket_channel/html.dart';

And then for web (kisWeb == true) it does this:

channel = HtmlWebSocketChannel.connect( 'wss://my.domain.com:1234/ws');

Is there a way that I can build this for app without having to comment it out every time?

@ferhatb
Copy link
Contributor

ferhatb commented Apr 29, 2020

@jdeltoft , If you have a function/class that have different implementation on web you can always do the following:

In your main.dart:

import 'native_work.dart'
  if (dart.library.html) 'web_work.dart' as my_worker;

my_worker.doSomething();

In native_work.dart:

import 'dart:ui';
import 'dart:isolate';

void doSomething() {
//  TODO: use isolate
}

In web_work.dart:

import 'dart:html' as html;

void doSomething() {
  // TODO: launch webworker...
}

@softmarshmallow
Copy link

softmarshmallow commented Apr 30, 2020

I thought dependency it self caused the build issue, because having dependancy (pubspec) & removing all imports -> build failed.

removing dependancy (pubspec) & removing all imports -> now worked.

@ferhatb

@iapicca
Copy link
Contributor

iapicca commented Apr 30, 2020

Could everyone who still has this problem please file a new issue with the exact descriptions what happens, logs and the output of 'flutter doctor -v' please.
All system setups can be slightly different so it's always better to open new issues and reference related issues.

@jdeltoft
Copy link

@ferhatb Just FYI I got good advice here:

dart-lang/web_socket_channel#111 (comment)

@ElaineSchwner
Copy link

Now that firestore is for web too. It should support dart.html. Actually, when building for Android or IOS, it should only ignore this.
Because for example, to get images from web it's necessary to import it.
The way it is now, we still need two base codes - one for web and other for Android/IOS.
And I think the intention is to use only one base code for web, Android and IOS.

@Maverick099
Copy link

@ditman this happens on master as well.
I figured that out: the issue was caused by import 'package:firebase/firebase.dart'; in my own core package, which is a dependency for my app. I used it to access FirebaseError.
Thank you all for helping.

what is the solution in this case ?

@majedqatousa the solution for now is: do not import web-only libraries in code that is supposed to run in mobile.

(Normally you can tell what platforms a package supports by looking at their pub.dev page, for example check package:firebase, it only lists DART: JS and FLUTTER: WEB as platforms. Compare with package:http, which lists DART: NATIVE, JS, and FLUTTER: ANDROID, IOS, WEB)

Then how would I access Firestore from my application if I do not import the firestore package?

@agordeev
Copy link
Contributor Author

Then how would I access Firestore from my application if I do not import the firestore package?

The package name is very-very ambiguous. It's intended to be used for web only, but its name doesn't clearly says that. Also, the error message isn't clear too.
For Firestore, you use https://pub.dev/packages/cloud_firestore

@brent-stone
Copy link

brent-stone commented Jul 31, 2020

Hi everyone, I'm going through the Flutter onboarding "hello world" tutorial using Windows 10. I turned on the beta web capability and Flutter doctor passes all tests.
https://flutter.dev/docs/get-started/web
https://flutter.dev/docs/get-started/codelab

When trying to reload at step 6 of the tutorial, the two experimental dart imports cause a failure. Commenting out the two automated dart imports allows the tutorial code to execute as described:
// import 'dart:html';
// import 'dart:math';

flutter doctor Doctor summary (to see all details, run flutter doctor -v): [√] Flutter (Channel beta, 1.20.0-7.3.pre, on Microsoft Windows [Version 10.0.18363.959], locale en-US) [√] Android toolchain - develop for Android devices (Android SDK version 30.0.1) [√] Chrome - develop for the web [√] Android Studio (version 4.0) [√] Connected device (4 available)
flutter run --verbose

flutter run --verbose
[ +85 ms] executing: [D:\flutter/] git -c log.showSignature=false log -n 1 --pretty=format:%H
[ +36 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H
[ ] e606910
[ ] executing: [D:\flutter/] git tag --contains HEAD
[ +142 ms] Exit code 0 from: git tag --contains HEAD
[ +1 ms] 1.20.0-7.3.pre
[ +10 ms] executing: [D:\flutter/] git rev-parse --abbrev-ref --symbolic @{u}
[ +18 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[ ] origin/beta
[ ] executing: [D:\flutter/] git ls-remote --get-url origin
[ +17 ms] Exit code 0 from: git ls-remote --get-url origin
[ ] https://github.com/flutter/flutter.git
[ +43 ms] executing: [D:\flutter/] git rev-parse --abbrev-ref HEAD
[ +18 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[ ] beta
[ +31 ms] Artifact Instance of 'AndroidMavenArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[ +1 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[ +17 ms] executing: D:\Android\platform-tools\adb.exe devices -l
[ +27 ms] List of devices attached
emulator-5554 device product:sdk_gphone_x86_arm model:sdk_gphone_x86_arm device:generic_x86_arm transport_id:3
[ +4 ms] D:\Android\platform-tools\adb.exe -s emulator-5554 shell getprop
[ +28 ms] Artifact Instance of 'AndroidMavenArtifacts' is not required, skipping update.
[ +2 ms] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[ +6 ms] Downloading Web SDK...
[ +5 ms] Downloading: https://storage.googleapis.com/flutter_infra/flutter/ac95267aef5175b3f6c3387d502070c68f588ad5/flutter-web-sdk-windows-x64.zip
[ +296 ms] Received response from server, collecting bytes...
[+4362 ms] Downloading Web SDK... (completed in 4.7s)
[+2734 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[ +130 ms] Generating D:\FlutterProjects\startup_namer\android\app\src\main\java\io\flutter\plugins\GeneratedPluginRegistrant.java
[ +16 ms] ro.hardware = ranchu
[ +11 ms] Using hardware rendering with device sdk gphone x86 arm. If you notice graphics artifacts, consider enabling software rendering with "--enable-software-rendering".
[ +23 ms] Starting incremental build...
[ +2 ms] Initializing file store
[ +7 ms] Skipping target: gen_localizations
[ +5 ms] complete
[ +3 ms] Launching lib\main.dart on sdk gphone x86 arm in debug mode...
[ +3 ms] D:\flutter\bin\cache\dart-sdk\bin\dart.exe --disable-dart-dev D:\flutter\bin\cache\artifacts\engine\windows-x64\frontend_server.dart.snapshot --sdk-root
D:\flutter\bin\cache\artifacts\engine\common\flutter_patched_sdk/ --incremental --target=flutter --debugger-module-names -Ddart.developer.causal_async_stacks=true --output-dill
C:\Users\Brent\AppData\Local\Temp\flutter_tools.142321dc\flutter_tool.896236eb\app.dill --packages .packages -Ddart.vm.profile=false -Ddart.vm.product=false
--bytecode-options=source-positions,local-var-info,debugger-stops,instance-field-initializers,keep-unreachable-code,avoid-closure-call-instructions --enable-asserts --track-widget-creation
--filesystem-scheme org-dartlang-root --initialize-from-dill build\cache.dill.track.dill
[ +9 ms] executing: D:\Android\build-tools\30.0.1\aapt dump xmltree D:\FlutterProjects\startup_namer\build\app\outputs\flutter-apk\app.apk AndroidManifest.xml
[ +8 ms] Exit code 0 from: D:\Android\build-tools\30.0.1\aapt dump xmltree D:\FlutterProjects\startup_namer\build\app\outputs\flutter-apk\app.apk AndroidManifest.xml
[ ] N: android=http://schemas.android.com/apk/res/android
E: manifest (line=2)
A: android:versionCode(0x0101021b)=(type 0x10)0x1
A: android:versionName(0x0101021c)="1.0.0" (Raw: "1.0.0")
A: android:compileSdkVersion(0x01010572)=(type 0x10)0x1c
A: android:compileSdkVersionCodename(0x01010573)="9" (Raw: "9")
A: package="com.example.startup_namer" (Raw: "com.example.startup_namer")
A: platformBuildVersionCode=(type 0x10)0x1c
A: platformBuildVersionName=(type 0x10)0x9
E: uses-sdk (line=7)
A: android:minSdkVersion(0x0101020c)=(type 0x10)0x10
A: android:targetSdkVersion(0x01010270)=(type 0x10)0x1c
E: uses-permission (line=14)
A: android:name(0x01010003)="android.permission.INTERNET" (Raw: "android.permission.INTERNET")
E: application (line=22)
A: android:label(0x01010001)="startup_namer" (Raw: "startup_namer")
A: android:icon(0x01010002)=@0x7f080000
A: android:name(0x01010003)="io.flutter.app.FlutterApplication" (Raw: "io.flutter.app.FlutterApplication")
A: android:debuggable(0x0101000f)=(type 0x12)0xffffffff
A: android:appComponentFactory(0x0101057a)="androidx.core.app.CoreComponentFactory" (Raw: "androidx.core.app.CoreComponentFactory")
E: activity (line=28)
A: android:theme(0x01010000)=@0x7f0a0000
A: android:name(0x01010003)="com.example.startup_namer.MainActivity" (Raw: "com.example.startup_namer.MainActivity")
A: android:launchMode(0x0101001d)=(type 0x10)0x1
A: android:configChanges(0x0101001f)=(type 0x11)0x40003fb4
A: android:windowSoftInputMode(0x0101022b)=(type 0x11)0x10
A: android:hardwareAccelerated(0x010102d3)=(type 0x12)0xffffffff
E: meta-data (line=42)
A: android:name(0x01010003)="io.flutter.embedding.android.NormalTheme" (Raw: "io.flutter.embedding.android.NormalTheme")
A: android:resource(0x01010025)=@0x7f0a0001
E: meta-data (line=52)
A: android:name(0x01010003)="io.flutter.embedding.android.SplashScreenDrawable" (Raw: "io.flutter.embedding.android.SplashScreenDrawable")
A: android:resource(0x01010025)=@0x7f040000
E: intent-filter (line=56)
E: action (line=57)
A: android:name(0x01010003)="android.intent.action.MAIN" (Raw: "android.intent.action.MAIN")
E: category (line=59)
A: android:name(0x01010003)="android.intent.category.LAUNCHER" (Raw: "android.intent.category.LAUNCHER")
E: meta-data (line=66)
A: android:name(0x01010003)="flutterEmbedding" (Raw: "flutterEmbedding")
A: android:value(0x01010024)=(type 0x10)0x2
[ +5 ms] executing: D:\Android\platform-tools\adb.exe -s emulator-5554 shell -x logcat -v time -t 1
[ +23 ms] Exit code 0 from: D:\Android\platform-tools\adb.exe -s emulator-5554 shell -x logcat -v time -t 1
[ ] --------- beginning of main
07-31 17:41:00.002 D/KeyguardClockSwitch( 786): Updating clock: 5î¸ 41
[ +1 ms] executing: D:\Android\platform-tools\adb.exe -s emulator-5554 shell -x logcat -v time -t 1
[ +21 ms] Exit code 0 from: D:\Android\platform-tools\adb.exe -s emulator-5554 shell -x logcat -v time -t 1
[ ] --------- beginning of kernel
07-31 17:41:05.531 D/logd ( 0): logdr: UID=2000 GID=2000 PID=6902 n tail=1 logMask=99 pid=0 start=0ns timeout=0ns
[ +4 ms] <- compile package:startup_namer/main.dart
[ +6 ms] executing: D:\Android\platform-tools\adb.exe version
[ +19 ms] Android Debug Bridge version 1.0.41
Version 30.0.4-6686687
Installed as D:\Android\platform-tools\adb.exe
[ +2 ms] executing: D:\Android\platform-tools\adb.exe start-server
[ +14 ms] Building APK
[ +13 ms] Running Gradle task 'assembleDebug'...
[ +1 ms] gradle.properties already sets android.enableR8
[ +2 ms] Using gradle from D:\FlutterProjects\startup_namer\android\gradlew.bat.
[ ] D:\FlutterProjects\startup_namer\android\gradlew.bat mode: 33279 rwxrwxrwx.
[ +5 ms] executing: D:\Program Files (x86)\JetBrains\apps\AndroidStudio\ch-0\193.6626763\jre\bin\java -version
[ +66 ms] Exit code 0 from: D:\Program Files (x86)\JetBrains\apps\AndroidStudio\ch-0\193.6626763\jre\bin\java -version
[ ] openjdk version "1.8.0_242-release"
OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
OpenJDK 64-Bit Server VM (build 25.242-b01, mixed mode)
[ +2 ms] executing: [D:\FlutterProjects\startup_namer\android/] D:\FlutterProjects\startup_namer\android\gradlew.bat -Pverbose=true -Ptarget-platform=android-x86
-Ptarget=D:\FlutterProjects\startup_namer\lib\main.dart -Ptrack-widget-creation=true -Pfilesystem-scheme=org-dartlang-root assembleDebug
[ +1 ms] lib/main.dart:5:8: Error: Not found: 'dart:html'
[ ] import 'dart:html';
[ ] ^
[+3022 ms] > Task :app:compileFlutterBuildDebug
[ ] [ +84 ms] executing: [D:\flutter/] git -c log.showSignature=false log -n 1 --pretty=format:%H
[ ] [ +36 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H
[ ] [ ] e606910
[ ] [ ] executing: [D:\flutter/] git tag --contains HEAD
[ ] [ +147 ms] Exit code 0 from: git tag --contains HEAD
[ ] [ ] 1.20.0-7.3.pre
[ ] [ +9 ms] executing: [D:\flutter/] git rev-parse --abbrev-ref --symbolic @{u}
[ ] [ +18 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[ ] [ ] origin/beta
[ ] [ ] executing: [D:\flutter/] git ls-remote --get-url origin
[ ] [ +17 ms] Exit code 0 from: git ls-remote --get-url origin
[ ] [ ] https://github.com/flutter/flutter.git
[ ] [ +45 ms] executing: [D:\flutter/] git rev-parse --abbrev-ref HEAD
[ ] [ +18 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[ ] [ ] beta
[ ] [ +27 ms] Artifact Instance of 'AndroidMavenArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[ ] [ +2 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[ ] [ +11 ms] Artifact Instance of 'MaterialFonts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'GradleWrapper' is not required, skipping update.
[ ] [ ] Artifact Instance of 'AndroidMavenArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[ ] [ ] Artifact Instance of 'FlutterSdk' is not required, skipping update.
[ ] [ ] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[ +1 ms] [ ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[ ] [ ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'FontSubsetArtifacts' is not required, skipping update.
[ ] [ +55 ms] Initializing file store
[ ] [ +10 ms] Skipping target: gen_localizations
[ ] [ +5 ms] kernel_snapshot: Starting due to {}
[ +1 ms] [ +23 ms] D:\flutter\bin\cache\dart-sdk\bin\dart.exe --disable-dart-dev D:\flutter\bin\cache\artifacts\engine\windows-x64\frontend_server.dart.snapshot --sdk-root
D:\flutter\bin\cache\artifacts\engine\common\flutter_patched_sdk/ --target=flutter -Ddart.developer.causal_async_stacks=true -Ddart.vm.profile=false -Ddart.vm.product=false
--bytecode-options=source-positions,local-var-info,debugger-stops,instance-field-initializers,keep-unreachable-code,avoid-closure-call-instructions --enable-asserts --track-widget-creation
--no-link-platform --packages D:\FlutterProjects\startup_namer.packages --output-dill D:\FlutterProjects\startup_namer.dart_tool\flutter_build\0800775a12c7c7720ae59ee6486026e3\app.dill --depfile
D:\FlutterProjects\startup_namer.dart_tool\flutter_build\0800775a12c7c7720ae59ee6486026e3\kernel_snapshot.d package:startup_namer/main.dart
[ +2 ms] [ +118 ms] lib/main.dart:5:8: Error: Not found: 'dart:html'
[ +1 ms] [ +1 ms] import 'dart:html';
[ ] [ ] ^
[+2966 ms] [+3888 ms] Unhandled exception:
[ ] FileSystemException(uri
[ ] [ ] =org-dartlang-untranslatable-uri:dart%3Ahtml; message=StandardFileSystem only supports file:* and data:* URIs)
[ ] #0 StandardFileSystem.entityForUri (package:front_end/src/api_prototype/standard_file_system.dart:33:7)
[ ] #1 asFileUri (package:vm/kernel_front_end.dart:659:37)
[ ] #2 writeDepfile (package:vm/kernel_front_end.dart:853:21)
[ ]
[ ] #3 FrontendCompiler.compile (package:frontend_server/frontend_server.dart:574:15)
[ ] <asynchronou
[ ] [ ] s suspension>
[ ] #4 _FlutterFrontendCompiler.compile (package:flutter_frontend_server/server.dart:43:22)
[ ] #5 starter (package:flutter_frontend_server/server.dart:182:27)
[ ] #6 main (file:///C:/b/s/w/ir/cache/builder/src/flutter/flutter_frontend_server/bin/starter.dart:9:30)
[ ] #7 _startIsolate. (dart:isolate-patch/isolate_patch.dart:299:32)
[ ] #8 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:168:12)
[ ] [ +8 ms] Target kernel_snapshot failed: Exception
[ ] #0 KernelSnapshot.build (package:flutter_tools/src/build_system/targets/common.dart:262:7)
[ ]
[ ] #1 _BuildInstance._invokeInternal (package:flutter_tools/src/build_system/build_system.dart:795:27)
[ ] #2 _rootRunUnary (dart:async/zone.dart:1198:47)
[ ] #3 _CustomZone.runUnary (dart:async/zone.dart:1100:19)
[ ] #4 _FutureListener.handleValue (dart:async/future_impl.dart:143:18)
[ ] #5 Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:696:45)
[ ] #6 Future._propagateToListeners (dart:async/future_impl.dart:725:32)
[ ] #7 Future._completeWithValue (dart:async/future_impl.dart:529:5)
[ ] #8 Future._asyncCompleteWithValue. (dart:async/future_impl.dart:567:7)
[ ] #9 _rootRun (dart:async/zone.dart:1190:13)
[ ] #10 _CustomZone.run (dart:async/zone.dart:1093:19)
[ ] #11 _CustomZone.runGuarded (dart:async/zone.dart:997:7)
[ ] #12 _CustomZone.bindCallbackGuarded. (dart:async/zone.dart:1037:23)
[ ] #13 _microtaskLoop (dart:async/schedule_microtask.dart:41:21)
[ ] #14 _startMicrotaskLoop (dart:async/schedule_microtask.dart:50:5)
[ ] #15 _runPendingImmediateCallback (dart:isolate-patch/isolate_patch.dart:118:13)
[ ] #16 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:169:5)
[ ] [ +3 ms]
[ ] #0 throwToolExit (package:flutter_tools/src/base/common.dart:14:3)
[ ] #1 AssembleCommand.runCommand (package:flutter_tools/src/commands/assemble.dart:238:7)
[ ] #2 _rootRunUnary (dart:async/zone.dart:1198:47)
[ ] #3 _CustomZone.runUnary (dart:async/zone.dart:1100:19)
[ ] #4 _FutureListener.handleValue (dart:async/future_impl.dart:143:18)
[ +1 ms] #5 Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:696:45)
[ ] #6 Future._propagateToListeners (dart:async/future_impl.dart:725:32)
[ ] #7 Future._completeWithValue (dart:async/future_impl.dart:529:5)
[ +1 ms] #8 _AsyncAwaitCompleter.complete (dart:async-patch/async_patch.dart:40:15)
[ ] #9 _completeOnAsyncReturn (dart:async-patch/async_patch.dart:311:13)
[ ] #10 FlutterBuildSystem.build (package:flutter_tools/src/build_system/build_system.dart)
[ ] #11 _rootRunUnary (dart:async/zone.dart:1198:47)
[ ] #12 _CustomZone.runUnary (dart:async/zone.dart:1100:19)
[ ] #13 _FutureListener.handleValue (dart:async/future_impl.dart:143:18)
[ ] #14 Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:696:45)
[ ] #15 Future._propagateToListeners (dart:async/future_impl.dart:725:32)
[ ] #16 Future._completeWithValue (dart:async/future_impl.dart:529:5)
[ ] #17 _AsyncAwaitCompleter.complete (dart:async-patch/async_patch.dart:40:15)
[ ] #18 _completeOnAsyncReturn (dart:async-patch/async_patch.dart:311:13)
[ ] #19 _BuildInstance.invokeTarget (package:flutter_tools/src/build_system/build_system.dart)
[ ] #20 _rootRunUnary (dart:async/zone.dart:1198:47)
[ ] #21 _CustomZone.runUnary (dart:async/zone.dart:1100:19)
[ ] #22 _FutureListener.handleValue (dart:async/future_impl.dart:143:18)
[ ] #23 Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:696:45)
[ ] #24 Future._propagateToListeners (dart:async/future_impl.dart:725:32)
[ ] #25 Future._completeWithValue (dart:async/future_impl.dart:529:5)
[ ] #26 Future.wait. (dart:async/future.dart:410:22)
[ ] #27 _rootRunUnary (dart:async/zone.dart:1198:47)
[ ] #28 _CustomZone.runUnary (dart:async/zone.dart:1100:19)
[ ] #29 _FutureListener.handleValue (dart:async/future_impl.dart:143:18)
[ +1 ms] #30 Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:696:45)
[ ] #31 Future._propagateToListeners (dart:async/future_impl.dart:725:32)
[ ] #32 Future._completeWithValue (dart:async/future_impl.dart:529:5)
[ ] #33 _AsyncAwaitCompleter.complete (dart:async-patch/async_patch.dart:40:15)
[ ] [ +44 ms] Persisting file store
[ ] [ +4 ms] Done persisting file store
[ ] [ +6 ms] "flutter assemble" took 4,191ms.
[ ] #34 _completeOnAsyncReturn (dart:async-patch/async_patch.dart:311:13)
[ ] #35 _BuildInstance._invokeInternal (package:flutter_tools/src/build_system/build_system.dart)
[ ] #36 _asyncErrorWrapperHelper.errorCallback (dart:async-patch/async_patch.dart:91:64)
[ ] #37 _rootRunBinary (dart:async/zone.dart:1214:47)
[ ] #38 _CustomZone.runBinary (dart:async/zone.dart:1107:19)
[ ] #39 _FutureListener.handleError (dart:async/future_impl.dart:157:20)
[ ] #40 Future._propagateToListeners.handleError (dart:async/future_impl.dart:708:47)
[ ] #41 Future._propagateToListeners (dart:async/future_impl.dart:729:24)
[ ] #42 Future._completeError (dart:async/future_impl.dart:537:5)
[ ] #43 _AsyncAwaitCompleter.completeError (dart:async-patch/async_patch.dart:47:15)
[ ] #44 KernelSnapshot.build (package:flutter_tools/src/build_system/targets/common.dart)
[ ] #45 _rootRunUnary (dart:async/zone.dart:1198:47)
[ ] #46 _CustomZone.runUnary (dart:async/zone.dart:1100:19)
[ ] #47 _FutureListener.handleValue (dart:async/future_impl.dart:143:18)
[ ] #48 Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:696:45)
[ +1 ms] #49 Future._propagateToListeners (dart:async/future_impl.dart:725:32)
[ ] #50 Future._completeWithValue (dart:async/future_impl.dart:529:5)
[ ] #51 _AsyncAwaitCompleter.complete (dart:async-patch/async_patch.dart:40:15)
[ ] #52 _completeOnAsyncReturn (dart:async-patch/async_patch.dart:311:13)
[ ] #53 KernelCompiler.compile (package:flutter_tools/src/compile.dart)
[ ] #54 _rootRunUnary (dart:async/zone.dart:1198:47)
[ ] #55 _CustomZone.runUnary (dart:async/zone.dart:1100:19)
[ ] #56 _FutureListener.handleValue (dart:async/future_impl.dart:143:18)
[ ] #57 Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:696:45)
[ ] #58 Future._propagateToListeners (dart:async/future_impl.dart:725:32)
[ ] #59 Future._completeWithValue (dart:async/future_impl.dart:529:5)
[ ] #60 Future._asyncCompleteWithValue. (dart:async/future_impl.dart:567:7)
[ ] #61 _rootRun (dart:async/zone.dart:1190:13)
[ ] #62 _CustomZone.run (dart:async/zone.dart:1093:19)
[ ] #63 _CustomZone.runGuarded (dart:async/zone.dart:997:7)
[ ] #64 _CustomZone.bindCallbackGuarded. (dart:async/zone.dart:1037:23)
[ ] #65 _microtaskLoop (dart:async/schedule_microtask.dart:41:21)
[ ] #66 _startMicrotaskLoop (dart:async/schedule_microtask.dart:50:5)
[ ] #67 _runPendingImmediateCallback (dart:isolate-patch/isolate_patch.dart:118:13)
[ ] #68 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:169:5)
[ ] FAILURE: Build failed with an exception.
[ ] * Where:
[ ] Script 'D:\flutter\packages\flutter_tools\gradle\flutter.gradle' line: 896
[ +1 ms] * What went wrong:
[ ] Execution failed for task ':app:compileFlutterBuildDebug'.
[ ] > Process 'command 'D:\flutter\bin\flutter.bat'' finished with non-zero exit value 1
[ ] * Try:
[ ] Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
[ ] * Get more help at https://help.gradle.org
[ ] BUILD FAILED in 5s
[ ] [ +1 ms] ensureAnalyticsSent: 0ms
[ ] [ ] Running shutdown hooks
[ ] [ ] Shutdown hooks complete
[ ] [ ] exiting with code 1
[ ] > Task :app:compileFlutterBuildDebug FAILED
[ +1 ms] 1 actionable task: 1 executed
[ +341 ms] Running Gradle task 'assembleDebug'... (completed in 6.5s)
[ +3 ms] Exception: Gradle task assembleDebug failed with exit code 1
[ +1 ms] "flutter run" took 14,333ms.
[ +3 ms]
#0 throwToolExit (package:flutter_tools/src/base/common.dart:14:3)
#1 RunCommand.runCommand (package:flutter_tools/src/commands/run.dart:591:7)

#2 FlutterCommand.verifyThenRunCommand (package:flutter_tools/src/runner/flutter_command.dart:860:18)
#3 _rootRunUnary (dart:async/zone.dart:1198:47)
#4 _CustomZone.runUnary (dart:async/zone.dart:1100:19)
#5 _FutureListener.handleValue (dart:async/future_impl.dart:143:18)
#6 Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:696:45)
#7 Future._propagateToListeners (dart:async/future_impl.dart:725:32)
#8 Future._completeWithValue (dart:async/future_impl.dart:529:5)
#9 _AsyncAwaitCompleter.complete (dart:async-patch/async_patch.dart:40:15)
#10 _completeOnAsyncReturn (dart:async-patch/async_patch.dart:311:13)
#11 RunCommand.usageValues (package:flutter_tools/src/commands/run.dart)
#12 _rootRunUnary (dart:async/zone.dart:1198:47)
#13 _CustomZone.runUnary (dart:async/zone.dart:1100:19)
#14 _FutureListener.handleValue (dart:async/future_impl.dart:143:18)
#15 Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:696:45)
#16 Future._propagateToListeners (dart:async/future_impl.dart:725:32)
#17 Future._completeWithValue (dart:async/future_impl.dart:529:5)
#18 _AsyncAwaitCompleter.complete (dart:async-patch/async_patch.dart:40:15)
#19 _completeOnAsyncReturn (dart:async-patch/async_patch.dart:311:13)
#20 AndroidDevice.isLocalEmulator (package:flutter_tools/src/android/android_device.dart)
#21 _rootRunUnary (dart:async/zone.dart:1198:47)
#22 _CustomZone.runUnary (dart:async/zone.dart:1100:19)
#23 _FutureListener.handleValue (dart:async/future_impl.dart:143:18)
#24 Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:696:45)
#25 Future._propagateToListeners (dart:async/future_impl.dart:725:32)
#26 Future._completeWithValue (dart:async/future_impl.dart:529:5)
#27 Future._asyncCompleteWithValue. (dart:async/future_impl.dart:567:7)
#28 _rootRun (dart:async/zone.dart:1190:13)
#29 _CustomZone.run (dart:async/zone.dart:1093:19)
#30 _CustomZone.runGuarded (dart:async/zone.dart:997:7)
#31 _CustomZone.bindCallbackGuarded. (dart:async/zone.dart:1037:23)
#32 _microtaskLoop (dart:async/schedule_microtask.dart:41:21)
#33 _startMicrotaskLoop (dart:async/schedule_microtask.dart:50:5)
#34 _runPendingImmediateCallback (dart:isolate-patch/isolate_patch.dart:118:13)
#35 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:169:5)

[ +95 ms] ensureAnalyticsSent: 94ms
[ +1 ms] Running shutdown hooks
[ ] Shutdown hook priority 4
[ +2 ms] Shutdown hooks complete
[ ] exiting with code 1

main.dart // Copyright 2018 The Flutter team. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file.

import 'dart:html';
import 'dart:math';

import 'package:flutter/material.dart';
import 'package:english_words/english_words.dart';

void main() => runApp(MyApp());

class MyApp extends StatelessWidget {
@OverRide
Widget build(BuildContext context) {
return MaterialApp(
title: 'Startup Name Generator',
home: RandomWords(),
);
}
}

class RandomWords extends StatefulWidget {
@OverRide
_RandomWordsState createState() => _RandomWordsState();
}

class _RandomWordsState extends State {
final _suggestions = [];
final _biggerFont = TextStyle(fontSize: 18.0);

Widget _buildSuggestions() {
return ListView.builder(
padding: EdgeInsets.all(16.0),
itemBuilder: /1/ (context, i) {
if (i.isOdd) return Divider(); /2/

      final index = i ~/ 2; /*3*/
      if (index >= _suggestions.length) {
        _suggestions.addAll(generateWordPairs().take(10)); /*4*/
      }
      return _buildRow(_suggestions[index]);
    });

}

Widget _buildRow(WordPair pair) {
return ListTile(
title: Text(
pair.asPascalCase,
style: _biggerFont,
),
);
}

@OverRide
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text('Startup Name Generator'),
),
body: _buildSuggestions(),
);
}
}

pubspec.yaml name: startup_namer description: A new Flutter application.

The following line prevents the package from being accidentally published to

pub.dev using pub publish. This is preferred for private packages.

publish_to: 'none' # Remove this line if you wish to publish to pub.dev

The following defines the version and build number for your application.

A version number is three numbers separated by dots, like 1.2.43

followed by an optional build number separated by a +.

Both the version and the builder number may be overridden in flutter

build by specifying --build-name and --build-number, respectively.

In Android, build-name is used as versionName while build-number used as versionCode.

Read more about Android versioning at https://developer.android.com/studio/publish/versioning

In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.

Read more about iOS versioning at

https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html

version: 1.0.0+1

environment:
sdk: ">=2.7.0 <3.0.0"

dependencies:
flutter:
sdk: flutter

The following adds the Cupertino Icons font to your application.

Use with the CupertinoIcons class for iOS style icons.

cupertino_icons: ^0.1.3
english_words: ^3.1.5

dev_dependencies:
flutter_test:
sdk: flutter

For information on the generic Dart part of this file, see the

following page: https://dart.dev/tools/pub/pubspec

The following section is specific to Flutter.

flutter:

The following line ensures that the Material Icons font is

included with your application, so that you can use the icons in

the material Icons class.

uses-material-design: true

To add assets to your application, add an assets section, like this:

assets:

- images/a_dot_burr.jpeg

- images/a_dot_ham.jpeg

An image asset can refer to one or more resolution-specific "variants", see

https://flutter.dev/assets-and-images/#resolution-aware.

For details regarding adding assets from package dependencies, see

https://flutter.dev/assets-and-images/#from-packages

To add custom fonts to your application, add a fonts section here,

in this "flutter" section. Each entry in this list should have a

"family" key with the font family name, and a "fonts" key with a

list giving the asset and other descriptors for the font. For

example:

fonts:

- family: Schyler

fonts:

- asset: fonts/Schyler-Regular.ttf

- asset: fonts/Schyler-Italic.ttf

style: italic

- family: Trajan Pro

fonts:

- asset: fonts/TrajanPro.ttf

- asset: fonts/TrajanPro_Bold.ttf

weight: 700

For details regarding fonts from package dependencies,

see https://flutter.dev/custom-fonts/#from-packages

@ditman
Copy link
Member

ditman commented Jul 31, 2020

@brent-stone please create a new issue in the flutter/website repo, since this looks like a problem with a codelab:

https://github.com/flutter/website/issues

Otherwise, only people who interacted with this ticket in the past will see your message.

Thanks!

@gaurav0581
Copy link

I don't Know from where these imports comes from -

import 'dart:html';
import 'package:flutter/scheduler.dart';

I deleted this and problem seems to be resolved.

Something bring to your notice that above some mates are commenting that after importing firebase package they got the error, I got the same error without importing the package however i was working with firebase through http package.

@Leffe108
Copy link

Leffe108 commented Sep 1, 2020

@jdeltoft , If you have a function/class that have different implementation on web you can always do the following:

In your main.dart:

import 'native_work.dart'
if (dart.library.html) 'web_work.dart' as my_worker;

my_worker.doSomething();

In native_work.dart:

import 'dart:ui';
import 'dart:isolate';

void doSomething() {
// TODO: use isolate
}

In web_work.dart:

import 'dart:html' as html;

void doSomething() {
// TODO: launch webworker...
}

How do you stop flutter from trying to build web_work.dart in the Android/iOS build and failing to compile it?

Edit: I have no code that imports web_work.dart, but still when performing flutter build apk it will try to compile it and fail on that.

@YRlp98
Copy link

YRlp98 commented Sep 3, 2020

If you just want to run your flutter app on mobiles, Removing 'dart:html'; in main.dart class will fix the error.

@Leffe108
Copy link

Leffe108 commented Sep 3, 2020

I made a sample project that was really simple and it worked fine just like you write.

Then I found out that VS Code auto-import in some class has brought in the web-version dart file and not the proxy import file. Also I had used a plugin that had web-only code and apparently need to guard importing that plugin via a proxy import as well.

Thank you.

@TEJESH5210

This comment has been minimized.

@leopedroso45
Copy link

If you just want to run your flutter app on mobiles, Removing 'dart:html'; in main.dart class will fix the error.

Yeah, you're right! I was just trying to run on mobile

@FakharAlyas119
Copy link

just Remove dart.html from import section where ever you import this and try again. I am sure this will work

@prateek-aher
Copy link

Why does it auto import dart : html though.

@panyamred
Copy link

@jdeltoft , If you have a function/class that have different implementation on web you can always do the following:
In your main.dart:
import 'native_work.dart'
if (dart.library.html) 'web_work.dart' as my_worker;
my_worker.doSomething();
In native_work.dart:
import 'dart:ui';
import 'dart:isolate';
void doSomething() {
// TODO: use isolate
}
In web_work.dart:
import 'dart:html' as html;
void doSomething() {
// TODO: launch webworker...
}

How do you stop flutter from trying to build web_work.dart in the Android/iOS build and failing to compile it?

Edit: I have no code that imports web_work.dart, but still when performing flutter build apk it will try to compile it and fail on that.

  • create mobile.dart and web.dart with same functions like the following
    class Isolated {
    static func1([arguments]) {
    //implementation based on environment...
    [return ...] //if required
    }
    }

  • Import the same using the below statement
    import 'mobile.dart'
    if (dart.library.html) 'web.dart';

  • Call func1() like the below
    Isolated.func1([arguments]);

Tested this in local with both iOS simulator and chrome browser.

@Dokotela
Copy link

Hey everyone, I've been trying to do the same thing on a package I've been working on. It's just an oauth2 wrapper. I believe I have followed all of the correct syntax to create both a web client and a mobile client together as follows:

import 'package:fhir/dstu2.dart';

import '../../dstu2.dart';
import '../fhir_client.dart';

import 'smart_client_stub.dart' // Stub implementation
    if (dart.library.io) 'smart_mobile_client.dart' // dart:io implementation
    if (dart.library.html) 'smart_web_client.dart'; // dart:html implementation

abstract class SmartClient extends FhirClient {
  // Return the correct implementation
  factory SmartClient({
    required FhirUri fhirUrl,
    required String clientId,
    required FhirUri redirectUri,
  }) {
    fhirUrl = fhirUrl;
    return getSmartClient(
      fhirUrl: fhirUrl,
      clientId: clientId,
      redirectUri: redirectUri,
    );
  }

  late FhirUri fhirUrl;
  bool isLoggedIn = false;

  @override
  Future<void> login();

  @override
  Future<Map<String, String>> get authHeaders async =>
      {'Content-Type': 'application/fhir+json'};

  @override
  Future<void> logout();
}

And when I include it in my applications, I have no issues. I can import it into a native android app, or a Flutter web app, and it seems to function exactly as I want it to in both. However, when I try to publish it on pub.dev, it says that it does not support multiple platforms:

Support multiple platforms 0/20
0/20 points: Supports 0 of 3 possible platforms (iOS, Android, Web)
Found 8 issues. Showing the first 2:
Consider supporting multiple platforms: Package not compatible with runtime flutter-native on Android
Because:
package:fhir_auth/dstu2/smart_client/smart_web_client.dart that imports:
dart:html

Has anyone else had trouble with this?

@Kirito344
Copy link

@ditman this happens on master as well.

I figured that out: the issue was caused by import 'package:firebase/firebase.dart'; in my own core package, which is a dependency for my app. I used it to access FirebaseError.

Thank you all for helping.

Thank you it was my same problem you saved my life

@github-actions
Copy link

This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 31, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
c: crash Stack traces logged to the console platform-web Web applications specifically tool Affects the "flutter" command-line tool. See also t: labels.
Projects
Tools - web review
  
Engineer reviewed
Development

No branches or pull requests