Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/react-native/7.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
React native “无法解决”;mobx反应/本机“;从「;节点“模块/react本机路由器流量/dist/router.js”;_React Native_Expo_React Native Router Flux - Fatal编程技术网

React native “无法解决”;mobx反应/本机“;从「;节点“模块/react本机路由器流量/dist/router.js”;

React native “无法解决”;mobx反应/本机“;从「;节点“模块/react本机路由器流量/dist/router.js”;,react-native,expo,react-native-router-flux,React Native,Expo,React Native Router Flux,我在用世博会 这是我的package.json文件 { "name": "emmunize", "version": "0.1.0", "private": true, "devDependencies": { "jest-expo": "27.0.0", "react-native-scripts": "^1.14.1", "react-test-renderer": "16.3.0-alpha.1" },

我在用世博会

这是我的package.json文件

{
    "name": "emmunize",
    "version": "0.1.0",
    "private": true,
    "devDependencies": {
        "jest-expo": "27.0.0",
        "react-native-scripts": "^1.14.1",
        "react-test-renderer": "16.3.0-alpha.1"
    },
    "main": "./node_modules/react-native-scripts/build/bin/crna-entry.js",
    "scripts": {
        "start": "react-native-scripts start",
        "eject": "react-native-scripts eject",
        "android": "react-native-scripts android",
        "ios": "react-native-scripts ios",
        "test": "jest"
    },
    "jest": {
        "preset": "jest-expo"
    },
    "dependencies": {
        "@expo/vector-icons": "^6.3.1",
        "expo": "^27.0.0",
        "firebase": "^5.0.2",
        "moment": "^2.22.2",
        "native-base": "^2.5.2",
        "react": "16.3.1",
        "react-native": "https://github.com/expo/react-native/archive/sdk-27.0.0.tar.gz",
        "react-native-datepicker": "^1.7.2",
        "react-native-router-flux": "^4.0.0-beta.32",
        "react-redux": "^5.0.7",
        "redux": "^4.0.0",
        "redux-thunk": "^2.2.0"
    }
}

我不知道发生了什么,当我尝试exp start和exp android时,出现了这个错误。我遵循了最新的exp版本27,但我认为react native router flux与最新的exp版本有问题吗

我在创建新项目时遇到了同样的问题。由于这是新的测试版,我们应该等待该小组能够解决该漏洞

临时解决方案

  • 开放式终端
  • 转到项目路径。。。示例:用户/Documents/ReactNative/(命名项目)/
  • 运行命令:npm remove react native router flux
  • 运行命令:npm install react native router-flux@4.0.0-β.28
  • 再次运行project以重试
反应本机路由器-flux@4.0.0-beta.28是我在上一个项目中使用的版本,运行良好