使用 RN 工具从 0.61.3 升级到 RN 0.62.2 后,用于升级、更新 pod(甚至必须修改 podspec 中的一行以使其正常工作:CocoaPods 找不到 pod“ReactCommon/jscallinvoker”的兼容版本:)
我的应用程序构建但卡在启动屏幕上。它在 RN 0.61.3 上运行良好
这是我在地铁控制台中的内容:
[Wed Apr 22 2020 18:22:25.108] WARN Require cycle: node_modules/react-native-af-video-player/components/index.js -> node_modules/react-native-af-video-player/components/TopBar.js -> node_modules/react-native-af-video-player/components/index.js
Require cycles are allowed, but can result in uninitialized values. Consider refactoring to remove the need for a cycle.
[Wed Apr 22 2020 18:22:25.108] LOG Unable to symbolicate stack trace: Unable to resolve data for blob: (null)
[Wed Apr 22 2020 18:22:25.109] LOG Running "gamefare" with {"rootTag":151,"initialProps":{}}
[Wed Apr 22 2020 18:22:25.122] LOG Unable to symbolicate stack trace: Unable to resolve data for blob: (null)
Run Code Online (Sandbox Code Playgroud)
任何人都遇到同样的问题,并且知道如何调试它吗?
我尝试删除节点模块并重新安装所有内容,但没有解决问题。
当我从控制台登录时,index.js我什么也没有。
编辑:这是我在 Xcode 中遇到的完整错误:
2020-04-24 16:46:00.478 [error][tid:com.facebook.react.JavaScript] TypeError: Object is not a constructor (evaluating 'new _reactNative.TextInput()')
2020-04-24 16:46:00.481 [fatal][tid:com.facebook.react.ExceptionsManagerQueue] Unhandled JS Exception: TypeError: Object is not a constructor (evaluating 'new _reactNative.TextInput()')
2020-04-24 16:46:00.490 [info][tid:com.facebook.react.JavaScript] Running "gamefare" with {"rootTag":1,"initialProps":{}}
2020-04-24 16:46:00.490 [error][tid:com.facebook.react.JavaScript] Invariant Violation: "gamefare" has not been registered. This can happen if:
* Metro (the local dev server) is run from the wrong folder. Check if Metro is running, stop it and restart it in the current project.
* A module failed to load due to an error and `AppRegistry.registerComponent` wasn't called.
2020-04-24 16:46:00.498 [fatal][tid:com.facebook.react.ExceptionsManagerQueue] Unhandled JS Exception: Invariant Violation: "myAppName" has not been registered. This can happen if:
* Metro (the local dev server) is run from the wrong folder. Check if Metro is running, stop it and restart it in the current project.
* A module failed to load due to an error and `AppRegistry.registerComponent` wasn't called.
2020-04-24 16:46:00.594 [info][tid:com.facebook.react.JavaScript] Unable to symbolicate stack trace: Unable to resolve data for blob: (null)
2020-04-24 16:46:00.604 [info][tid:com.facebook.react.JavaScript] Unable to symbolicate stack trace: Unable to resolve data for blob: (null)
Run Code Online (Sandbox Code Playgroud)
最后,经过一番搜索后,我不得不逐页禁用所有组件,看看问题的原因是什么。看来我正在使用的这个软件包:react-native-confirmation-code-field需要更新!(维护者意识到了 RN 0.62 的问题并更新了它,感谢他!
reac-native-firebase如果有人遇到同样的问题并使用这些模块,我还需要更新。
调试的最佳方法是在登录控制台不清楚时,通过删除所有内容并将每个组件的所有部分重新组合在一起来一点一点进行
| 归档时间: |
|
| 查看次数: |
1124 次 |
| 最近记录: |