繁体   English   中英

急速模块 map 中不存在模块“react-native-screens”

[英]Module `react-native-screens` does not exist in the Haste module map

尝试运行项目时出现错误。

捆绑失败:错误:无法从H:\T16\Booster\node_modules\react-navigation-stack\lib\module\views\StackView\StackViewCard.js模块react-native-screens -native-screens:模块react-native-screens没有存在于急速模块 map

这是节点中错误的屏幕截图enter image description here

我已经按照人们的建议安装了这些软件包

“反应原生屏幕”

“react-native-reanimated”

“反应本机手势处理程序”

我的反应原生版本是 59.5

  • 尝试多次删除 node_module,
  • 尝试重置缓存,
  • 重置 Metro Bundler 缓存,
  • 正确迁移到androidx。

但还没有解决。 这里我给出 package.json 文件

 { "name": "Booster", "version": "0.0.1", "private": true, "scripts": { "start": "node node_modules/react-native/local-cli/cli.js start", "test": "jest" }, "dependencies": { "@grpc/grpc-js": "^0.6.14", "@react-native-community/datetimepicker": "^2.2.3", "@react-navigation/native": "^5.1.4", "firebase": "^7.6.0", "grpc": "^1.20.2", "moment": "^2.24.0", "native-base": "^2.12.1", "react": "16.8.3", "react-native": "0.59.5", "react-native-fbsdk": "^0.8.0", "react-native-gesture-handler": "^1.6.1", "react-native-google-signin": "^2.0.0", "react-native-html-to-pdf": "^0.8.0", "react-native-modal": "^11.5.4", "react-native-pie": "^0.5.0", "react-native-push-notification": "^3.1.3", "react-native-reanimated": "^1.7.1", "react-native-screen": "^1.0.0", "react-native-splash-screen": "^3.2.0", "react-native-swipeout": "^2.3.6", "react-native-swiper": "^1.5.14", "react-native-vector-icons": "^6.4.2", "react-navigation": "^3.0.8", "react-redux": "^7.2.0", "redux": "^4.0.5", "redux-logger": "^3.0.6", "redux-saga": "^0.16.0", "rn-fetch-blob": "^0.10.16" }, "devDependencies": { "@babel/core": "^7.4.4", "@babel/runtime": "^7.4.4", "babel-jest": "^24.7.1", "jest": "^24.7.1", "metro-react-native-babel-preset": "^0.53.1", "react-test-renderer": "16.8.3" }, "jest": { "preset": "react-native" }, "rnpm": { "assets": [ "./src/assets/fonts/" ] } }

react-native-screens 这是 package。 但是在您的 package.json 文件中,它只是 react-native-screen。 请改变这个。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM