参考错误:找不到变量:__fbBatchedBridge [英] ReferenceError: Can't find variable: __fbBatchedBridge
问题描述
仅使用 react-native init AwesomeProject
中的默认代码,当我运行应用程序时,我收到ReferenceError: Can't find variable: __fbBatchedBridge(生成的包中的第 1 行)".
Using just the default code from react-native init AwesomeProject
, when I run the app I get the 'ReferenceError: Can't find variable: __fbBatchedBridge (line 1 in the generated bundle)'.
而且,当我重新加载 JS"时,应用程序只有白色背景,而不是任何hello world"视图.我没有接触过 init 中的任何代码.
And, when I 'Reload JS', the app just has the white background rather than any 'hello world' views. I haven't touched any of the code from the init.
知道如何解决错误吗?
截图(点击查看全尺寸):
Screenshot (click to view full size):
使用:
- Ubuntu 15.10,64 位
- Node.js v5.3.0
- reactive-native v0.1.7
- Nexus 5X,API 6.0.1
推荐答案
我通常在打包程序尚未启动时看到这一点.通过运行 react-native start 确保正在运行
I generally see this when the packager hasn't started. Ensure that is running by running react-native start
这篇关于参考错误:找不到变量:__fbBatchedBridge的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!