node.js - 引用错误 : Can't find variable: __fbBatchedBridge

标签 node.js react-native

仅使用 react-native init AwesomeProject 中的默认代码,当我运行应用程序时,我得到“ReferenceError: Can't find variable: __fbBatchedBridge (line 1 in the generated bundle)”。

而且,当我“重新加载 JS”时,应用程序只有白色背景,而不是任何“hello world” View 。我还没有接触过 init 中的任何代码。

有什么办法解决这个错误吗?

截图(点击查看大图):
enter image description here

使用:

  • Ubuntu 15.10,64 位
  • Node.js v5.3.0
  • 响应式(Reactive)原生 v0.1.7
  • Nexus 5X,API 6.0.1

最佳答案

我通常在打包程序没有启动时看到这个。通过运行 react-native start 确保正在运行

关于node.js - 引用错误 : Can't find variable: __fbBatchedBridge,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34500020/

相关文章:

javascript - Firebase 注册用户 - 在 Node 中存储用户与在注册用户中存储用户

linux - 如何在 Linux 中打开端口?

node.js - MongooseError [并行保存错误] : Can't save() the same doc multiple times in parallel

javascript - 如何获取createAt对象?

javascript - 类型错误 : undefined is not an object (evaluating this. getActiveTab().barColor)

javascript - onPress 事件不适用于 React Native 中的 View 、图像、可触摸不透明度

javascript - 函数在await执行完成之前返回

react-native - 列表项头像不显示

ios - 使用 ReactNative 时需要 NSPhotoLibraryUsageDescription 权限(...我认为)

android - 有没有人找到在 Android 上的 React Native 中嵌套 View 的解决方法?