React Native-您当前正在使用NODE_ENV ===“ production”

我遇到以下错误:

您当前正在使用NODE_ENV ===“ production”之外的缩小代码。在将redux添加到我的项目中后,React Native应用出现错误。

屏幕截图:https://imgur.com/a/aIzZOSV

我尝试了此操作-React Native - "You are currently using minified code outside of NODE_ENV === "production" ",但是在弹出窗口中没有得到最后的“ Dev Settings”选项。

我尝试了互联网上的许多选项,但似乎无济于事。

请帮助我。

luxi19830817 回答:React Native-您当前正在使用NODE_ENV ===“ production”

验证:

  1. Package.json脚本:

      "scripts": {
        "start": "expo start","android": "expo start --android","ios": "expo start --ios","eject": "expo eject"
     },

2。“。expo”目录=> settings.json

{
  "hostType": "lan","lanType": "ip","dev": true,"minify": false,"urlRandomness": "zt-j39"
}

运行:博览会开始

本文链接:https://www.f2er.com/3154056.html

大家都在问