【问题标题】:Unhandled JS Exception: Can't find variable: process未处理的 JS 异常:找不到变量:进程
【发布时间】:2017-11-12 17:53:06
【问题描述】:

我的问题是当我在 Xcode 上运行我的 react native 应用程序时(我的设备是 10.1.1),它成功构建但我在这里得到一个红屏

That error pic here

但是当我在 iOS 模拟器 (10.3) 上运行时,它也成功构建并完美运行而没有错误

【问题讨论】:

  • 分享代码而不是图片,这样你就可以被跟踪
  • 升级到最新的 RN 0.51 后出现同样的问题

标签: javascript ios xcode reactjs react-native


【解决方案1】:

您必须设置环境变量。这个答案应该可以帮助你:

Setting environment variable in react-native?

【讨论】:

    猜你喜欢
    • 2023-02-01
    • 1970-01-01
    • 1970-01-01
    • 2021-10-08
    • 1970-01-01
    • 2023-03-07
    • 2013-10-23
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多