React Native iOS运行报错求助:TypeError与AppRegistry异常
React Native iOS应用运行报错求助
环境信息
- 设备架构:Apple Silicon M1 Max
- Xcode版本:v14.3.1
- React Native版本:0.63.2
报错内容
运行iOS应用时出现以下错误:
TypeError: this._nativeModule.addListener is not a function. (In 'this._nativeModule.addListener(eventType)', 'this._nativeModule.addListener' is undefined)
ERROR Invariant Violation: Module AppRegistry is not a registered callable module (calling runApplication)
已尝试的操作
- 卸载并重新安装
node_modules - 卸载并重新安装
pods
以上操作后问题仍未解决,恳请各位提供可行的解决方法。

内容的提问来源于stack exchange,提问作者Mayur Gohil
相关产品推荐
相关产品推荐

