在更新了对v0.6.0的本机反应之后,我得到了这些错误。我甚至尝试从头开始创建一个项目,但我仍然会遇到这些错误。还有其他人看过这个吗?这段代码以前起过作用。有什么办法解决这个问题吗?
错误:无法读取未定义堆栈的属性“无”:index.ios.bundle:24163需要index.ios.bundle:244 index.ios.bundle:23216 require index.ios.bundle:244index.ios.bundle:1187 index.ios.bundle:244 index.ios.bundle:1116 index.ios.bundle:1116 index.ios.bundle:244 Object.ErrorUtils.applyWithGuard index.ios.bundle:880 requireindex.ios.bundle:195 URL:未定义行:未定义消息:无法读取undefinedhandleException @ index.ios.bundle:7033的属性“无” index.ios.bundle:35950使用appParams:{"rootTag":1、“initialProps”:{}运行应用程序"TestApp“。DEV === true,启动开发级别警告,关闭性能优化。 index.ios.bundle:7033错误:不变冲突:应用程序TestApp尚未注册。堆栈: Object.AppRegistry.runApplication index.ios.bundle:35957 jsCall index.ios.bundle:7328 MessageQueueMixin._callFunction index.ios.bundle:7591索引。ReactDefaultBatchingStrategyTransaction.Mixin.perform index.ios.bundle:7612 index.ios.bundle:6143 index.ios.bundle:13907 index.ios.bundle:13907 Object.batchedUpdates index.ios.bundle:4686 URL:未定义行:未定义消息:不变冲突:应用程序TestApp未注册。
发布于 2015-06-26 18:01:08
我想我知道问题所在了。这与我正在使用的组件有关,在我的例子中是react-native-device。要修复它,我必须做的是删除位于组件中的node_modules文件夹。AppName/node_modules/React-Native-Component/node_modules。
我还更新了package.json文件中的依赖项(也位于组件文件夹AppName/node_modules/React-Native-Component/package.json中),并将react-本机依赖项更改为(或类似的):
"peerDependencies": {
"react-native": ">= 0.4.0 < 1"
},更新
您也可以尝试重新启动计算机。我注意到节点开始打开多个进程,这可能会导致问题。
更新2
在终端中运行的项目根文件夹中:
./node_modules/react-native/packager/packager.sh --reset-cache 以上所有修正的组合为我修复了它。希望这能帮上忙。
https://stackoverflow.com/questions/31064224
复制相似问题