[升级到RN 0.62后将不会加载应用程序

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了[升级到RN 0.62后将不会加载应用程序相关的知识,希望对你有一定的参考价值。

[使用RN工具从0.61.3升级到RN 0.62.2后,进行了升级,更新了pod(甚至必须在podspec中修改一行以使其起作用:CocoaPods could not find compatible versions for 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)

任何人都遇到同一问题,并且对如何调试它有任何想法?

我尝试删除节点模块并重新安装所有不能解决问题的方法。

当我从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)
答案

最后进行一些搜索后,我不得不禁用所有组件的每页页面,以查看引起问题的原因。看来我正在使用此软件包:react-native-confirmation-code-field需要更新! (感谢他,维护者意识到RN 0.62的问题,并对其进行了更新!

以上是关于[升级到RN 0.62后将不会加载应用程序的主要内容,如果未能解决你的问题,请参考以下文章

片段项目不会折叠

在我旋转屏幕之前,LiveData 不会加载到片段中

更改片段时显示 ProgressBar - Android

将仅 JS 的 react-native 库升级到 RN 0.60

将 RN 0.37 升级到 0.41 破坏了在设备上运行的能力

RN升级后未找到`FBLazyVector`的podspec