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

Demo 运行报错 #38

Closed
everyu opened this issue Aug 6, 2020 · 2 comments
Closed

Demo 运行报错 #38

everyu opened this issue Aug 6, 2020 · 2 comments

Comments

@everyu
Copy link

everyu commented Aug 6, 2020

iOS 跑主工程的example,跳转到示例页面时报错:
[ERR]::MXJSWidgetState:build: widget.widgetData == null this.widget.widgetID:3

然后页面空白,只有一个loading动画。

@everyu
Copy link
Author

everyu commented Aug 6, 2020

项目启动的日志

JSModule Use Cache js_flutter_basic_types.js
2020-08-06 14:34:49.455381+0800 Runner[42808:1706820] JSModule Use Cache dart_sdk
2020-08-06 14:34:49.459285+0800 Runner[42808:1706820] MXJSFlutter:[Native]-|-[MXJSEngine setupBasicJSRuntime:context:]_block_invoke|[170]-js context.exceptionHandler ReferenceError: Can't find variable: globalThis
2020-08-06 14:34:49.459723+0800 Runner[42808:1706820] MXJSFlutter:[Native]-|-[MXJSEngine setupBasicJSRuntime:context:]_block_invoke|[170]-js context.exceptionHandler TypeError: Right side of assignment cannot be destructured
2020-08-06 14:34:49.459809+0800 Runner[42808:1706820] MXJSFlutter:[Native]-|-[MXJSFlutterApp runApp]_block_invoke_2|[167]-MXJSFlutter : runApp error:(null)
2020-08-06 14:35:01.488627+0800 Runner[42808:1706820] MXJSFlutter:[Native]-|-[MXJSEngine setupBasicJSRuntime:context:]_block_invoke|[170]-js context.exceptionHandler ReferenceError: Cannot access uninitialized variable.
2020-08-06 14:35:01.488785+0800 Runner[42808:1706820] MXJSFlutter : call main error:(null)

@everyu
Copy link
Author

everyu commented Aug 6, 2020

跳转后的日志

2020-08-06 14:38:19.498900+0800 Runner[42808:1706798] flutter: MXJSFlutter:[Flutter]-'MXJSPageWidget::build': MXJSFlutter.getInstance().navigatorPushWithName: MXJSWidgetHomePage key:[#98250]
2020-08-06 14:38:19.499909+0800 Runner[42808:1706798] flutter: MXJSFlutter:[Flutter]-MXJSFlutterApp:navigatorPushWithName: widgetName: MXJSWidgetHomePage
2020-08-06 14:38:19.508061+0800 Runner[42808:1706798] flutter: MXJSFlutter:[Flutter]-callJSWidget:flutterCallNavigatorPushWithName
2020-08-06 14:38:19.516019+0800 Runner[42808:1706649] MXJSFlutter:[Native]-|-[MXJSFlutterApp setupChannel]_block_invoke|[124]-MXJSFlutter : jsFlutterAppChannel callJS:flutterCallNavigatorPushWithName
2020-08-06 14:38:19.517728+0800 Runner[42808:1706798] flutter: MXJSFlutter:[Flutter]-MXJSStatefulWidget:build begin: widgetID 3 curBuildWidgetDataSeq:null buildingWidgetDataSeq:null
2020-08-06 14:38:19.518124+0800 Runner[42808:1706798] flutter: MXJSFlutter:[Flutter]-[ERR]::MXJSWidgetState:build: widget.widgetData == null this.widget.widgetID:3

@everyu everyu closed this as completed Aug 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant