flutter_echarts icon indicating copy to clipboard operation
flutter_echarts copied to clipboard

Recently change error, Come from javaScript resource.Please solve it in original resource.Thanks.

Open Onperson opened this issue 2 years ago • 2 comments

Unhandled Exception: PlatformException(FWFEvaluateJavaScriptError, Failed evaluating JavaScript., A JavaScript exception occurred (WKErrorDomain:4:{WKJavaScriptExceptionLineNumber: Unsupported Type: 45, WKJavaScriptExceptionMessage: TypeError: null is not an object (evaluating 't.getAttribute'), WKJavaScriptExceptionSourceURL: Unsupported Type: about:blank, NSLocalizedDescription: A JavaScript exception occurred, WKJavaScriptExceptionColumnNumber: Unsupported Type: 218226}), null) #0 WKWebViewHostApiImpl.evaluateJavaScriptForInstances (package:webview_flutter_wkwebview/src/web_kit/web_kit_api_impls.dart:1061:7) #1 WebKitWebViewController.runJavaScript (package:webview_flutter_wkwebview/src/webkit_webview_controller.dart:401:7) #2 _EchartsState.init (package:flutter_echarts/flutter_echarts.dart:99:5)

Onperson avatar Sep 27 '23 07:09 Onperson

Good afternoon did you manage to solve this?

morozovilya-coder163 avatar Dec 29 '23 08:12 morozovilya-coder163

I resolved this issue through the following methods:

  1. The data must be non null,

  2. Set echarts reloadAfterInit to false

huangbos avatar May 09 '24 05:05 huangbos