flutter-html-editor
flutter-html-editor copied to clipboard
JavaScript execution returned a result of an unsupported type
I got this error when loading flutter HTML editor.
[VERBOSE-2:ui_dart_state.cc(177)] Unhandled Exception: PlatformException(evaluateJavaScript_failed, Failed evaluating JavaScript, JavaScript string was: '$(".note-placeholder").html("Your text here...");'
Error Domain=WKErrorDomain Code=5 "JavaScript execution returned a result of an unsupported type" UserInfo={NSLocalizedDescription=JavaScript execution returned a result of an unsupported type}, null)
#0 StandardMethodCodec.decodeEnvelope (package:flutter/src/services/message_codecs.dart:582:7)
#1 MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:159:18)
<asynchronous suspension>
#2 MethodChannel.invokeMethod (package:flutter/src/services/platform_channel.dart:332:12)
#3 MethodChannelWebViewPlatform.evaluateJavascript (package:webview_flutter/src/webview_method_channel.dart:115:21)
#4 WebViewController.evaluateJavascript (package:webview_flutter/webview_flutter.dart:672:39)
#5 HtmlEditorState.setHint (package:html_editor/html_editor.dart:25<…>
[VERBOSE-2:ui_dart_state.cc(177)] Unhandled Exception: PlatformException(evaluateJavaScript_failed, Failed evaluating JavaScript, JavaScript string was: '$(".note-placeholder").html("Your text here...");'
Error Domain=WKErrorDomain Code=5 "JavaScript execution returned a result of an unsupported type" UserInfo={NSLocalizedDescription=JavaScript execution returned a result of an unsupported type}, null)
#0 StandardMethodCodec.decodeEnvelope (package:flutter/src/services/message_codecs.dart:582:7)
#1 MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:159:18)
<asynchronous suspension>
#2 MethodChannel.invokeMethod (package:flutter/src/services/platform_channel.dart:332:12)
#3 MethodChannelWebViewPlatform.evaluateJavascript (package:webview_flutter/src/webview_method_channel.dart:115:21)
#4 WebViewController.evaluateJavascript (package:webview_flutter/webview_flutter.dart:672:39)
#5 HtmlEditorState.setHint (package:html_editor/html_editor.dart:25<…>
i have the same error.
+1 with
html_editor: ^1.0.1
same error
Same
Same
I forked this library and have made some pretty massive changes to it, you can find it here. I've fixed this issue (and many others) in that library.
I would have preferred to create PRs but it seems this library is lacking maintenance so I took it upon myself.