Unhandled JS Exception: Can't find variable:process求大神指点



  • Unhandled JS Exception: Can't find variable:process 求大神指教这个问题是什么导致的。这是在link react-native-amap3d时出现的,换成react-native-maps依旧有这个问题。
    配置的环境是:

      "dependencies": {
        "react": "16.0.0",
        "react-native": "0.50.4",
        "react-native-amap3d": "^0.8.0"
      },
      "devDependencies": {
        "babel-jest": "21.2.0",
        "babel-preset-react-native": "4.0.0",
        "jest": "21.2.1",
        "react-test-renderer": "16.0.0"
      },
      "jest": {
        "preset": "react-native"
      }
    

    0_1511874674264_B27493C0-CCAA-4671-AE19-A770232E1233.png


  • administrators

    这是丢失了react包的症状
    建议删除node_modules后重新npm install
    如果npm install后仍然没有react包,那么换用yarn安装


登录后回复