-
-
Notifications
You must be signed in to change notification settings - Fork 143
Description
Affected version
0.14.0
No same issues found.
- Yes, I search all issues but not found.
Steps to Reproduce
使用Vue最新版本的Cli,创建新项目,会有MutationObserver
Code example
class MyApp extends StatefulWidget {
const MyApp({Key? key}) : super(key: key);
@override
State<MyApp> createState() => _MyAppState();
}
class _MyAppState extends State<MyApp> {
@override
Widget build(BuildContext context) {
final MediaQueryData queryData = MediaQuery.of(context);
final Size viewportSize = queryData.size;
return Scaffold(
appBar: AppBar(
// Here we take the value from the MyHomePage object that was created by
// the App.build method, and use it to set our appbar title.
title: Text("xixi"),
),
body: Center(
child: Column(
children: [
WebF(
devToolsService: ChromeDevToolsService(), // Enable Chrome DevTools Services
viewportWidth: viewportSize.width - queryData.padding.horizontal, // Adjust the viewportWidth
viewportHeight: viewportSize.height - queryData.padding.vertical, // Adjust the viewportHeight
bundle: WebFBundle.fromUrl('http://172.16.25.118:8000/'), // The page entry point
),
],
),
));
}
}
Expected results
正常显示
Actual results
E/WEBF_NATIVE_LOG( 6868): ReferenceError: 'MutationObserver' is not defined
E/WEBF_NATIVE_LOG( 6868): at (http://172.16.25.142:8000/assets/index-393e57c5.js:1:192)
E/WEBF_NATIVE_LOG( 6868): at (http://172.16.25.142:8000/assets/index-393e57c5.js:1:1)
E/WEBF_NATIVE_LOG( 6868):
I/flutter ( 6868): Script code are not valid to evaluate.
I/flutter ( 6868): #0 ScriptRunner._evaluateScriptBundle (package:webf/src/html/script.dart:47:9)
I/flutter ( 6868):
I/flutter ( 6868): #1 ScriptRunner._queueScriptForExecution.task (package:webf/src/html/script.dart:93:9)
I/flutter ( 6868):
I/flutter ( 6868): #2 ScriptRunner._execute (package:webf/src/html/script.dart:64:7)
I/flutter ( 6868):
I/flutter ( 6868):