Skip to content
This repository has been archived by the owner on Mar 14, 2023. It is now read-only.

errors.dart:187 Uncaught (in promise) Error: LateInitializationError: Field 'connector' has not been initialized. #62

Open
atove opened this issue Feb 20, 2022 · 2 comments

Comments

@atove
Copy link

atove commented Feb 20, 2022

code :

onPageFinished: (String _url) {
    controller!.getTitle().then((value) {
      if (widget.setTitle != null) {
        widget.setTitle!(value);
      }
      return value;
    });
  },

flutter run -d chrome --web-renderer html

Uncaught (in promise) Error: LateInitializationError: Field 'connector' has not been initialized.
at Object.throw_ [as throw] (errors.dart:236:49)
at web.WebViewXController.new.get connector [as connector] (web.dart:19:20)
at web.WebViewXController.new.getTitle (web.dart:227:34)
at index.dart:114:11
at _RootZone.runUnary (zone.dart:1613:54)
at _FutureListener.then.handleValue (future_impl.dart:155:18)
at handleValueCallback (future_impl.dart:707:44)
at Function._propagateToListeners (future_impl.dart:736:13)
at _Future.new.[_complete] (future_impl.dart:533:7)
at future.dart:312:15
at internalCallback (isolate_helper.dart:48:19)

@Ahmadre
Copy link

Ahmadre commented Mar 22, 2022

this is a core issue, it's not your code. callJsMethod is not working in the root

@SlickSlime
Copy link

#36

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants