在使用RN工具从0.61.3升级到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)发布于 2020-04-28 12:52:54
最后,在进行了一些搜索之后,我不得不禁用每个页面的所有组件,以查看问题的原因。看来我正在使用的这个包:react-native-confirmation-code-field需要更新!(维修工意识到RN0.62的问题,并更新了它,多亏了他!
如果有人遇到同样的问题并使用这些模块,我还需要更新reac-native-firebase。
调试的最佳方法是一点一点地删除所有内容,并在登录控制台不清楚时将所有组件添加回每个组件。
https://stackoverflow.com/questions/61370209
复制相似问题