首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >升级到RN0.62后,App不会加载

升级到RN0.62后,App不会加载
EN

Stack Overflow用户
提问于 2020-04-22 16:30:06
回答 1查看 980关注 0票数 0

在使用RN工具从0.61.3升级到0.62.2之后,更新pod (甚至必须修改podspec中的一行,如下所示:CocoaPods could not find compatible versions for pod "ReactCommon/jscallinvoker":)

我的应用程序构建,但会卡在屏幕上。它在RN 0.61.3上运行得很好

这就是我在地铁控制台里看到的:

代码语言:javascript
复制
[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中的全部错误:

代码语言:javascript
复制
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)
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2020-04-28 12:52:54

最后,在进行了一些搜索之后,我不得不禁用每个页面的所有组件,以查看问题的原因。看来我正在使用的这个包:react-native-confirmation-code-field需要更新!(维修工意识到RN0.62的问题,并更新了它,多亏了他!

如果有人遇到同样的问题并使用这些模块,我还需要更新reac-native-firebase

调试的最佳方法是一点一点地删除所有内容,并在登录控制台不清楚时将所有组件添加回每个组件。

票数 6
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/61370209

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档