gpt4 book ai didi

react-native - 无法从 "mobx-react/native"解析 "node_modules/react-native-router-flux/dist/Router.js"

转载 作者:行者123 更新时间:2023-12-02 04:28:50 26 4
gpt4 key购买 nike

我正在使用博览会。

这是我的 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 https://blog.expo.io/expo-sdk-v27-0-0-is-now-available-898bf1e5b0e4但我认为 react-native-router-flux 与最新的 expo 版本有问题?

最佳答案

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

临时解决方案

  • 打开终端
  • 转到项目路径...示例:user/Documents/ReactNative/(为您的项目命名)/
  • 运行命令:npm remove react-native-router-flux
  • 运行命令:npm install react-native-router-flux@4.0.0-beta.28
  • 再次运行项目试试

react-native-router-flux@4.0.0-beta.28 是我在上一个项目中使用的版本,运行良好。

关于react-native - 无法从 "mobx-react/native"解析 "node_modules/react-native-router-flux/dist/Router.js",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50886593/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com