错误!您尝试要求使用'@ react-native-firebase / auth'版本'6.2.0',但是

问题描述 投票:0回答:1

错误!您试图要求@react-native-firebase/auth版本为'6.2.0',但是@react-native-firebase/app模块的版本不同(6.3.4)。

每当启动应用程序时,我都会收到此错误。我尝试重新安装所有模块,删除并重新安装,以将所有本机Firebase模块安装到版本6.3.4,版本6.2.0,但仍然没有。我无法使用firebase软件包,因为我以不同的方式实现了firebase。你知道我该怎么办吗?

Package.json:

  "name": "Vanto",
  "version": "0.0.1",
  "private": true,
  "scripts": {
    "android": "react-native run-android",
    "ios": "react-native run-ios",
    "start": "react-native start",
    "test": "jest",
    "lint": "eslint ."
  },
  "dependencies": {
    "@react-native-firebase/app": "^6.2.0",
    "@react-native-firebase/auth": "^6.2.0",
    "@react-native-firebase/storage": "^6.2.0",
    "@types/react": "^16.9.17",
    "@types/react-native": "^0.60.31",
    "jetifier": "^1.6.5",
    "react": "16.9.0",
    "react-native": "0.61.5",
    "react-native-admob": "^2.0.0-beta.6",
    "react-native-appearance": "^0.3.1",
    "react-native-gesture-handler": "^1.5.3",
    "react-native-image-picker": "^2.3.0",
    "react-native-ionicons": "^4.6.4",
    "react-native-navigation-bar-color": "^1.0.0",
    "react-native-reanimated": "^1.4.0",
    "react-native-restart": "0.0.14",
    "react-native-splash-screen": "^3.2.0",
    "react-native-typescript-transformer": "^1.2.13",
    "react-native-vector-icons": "^6.6.0",
    "react-navigation": "^4.0.10",
    "react-navigation-stack": "^1.10.3",
    "react-navigation-tabs": "^2.6.2",
    "styled-components": "^5.0.1",
    "typescript": "^3.7.5",
    "uninstall": "0.0.0"
  },
  "devDependencies": {
    "@babel/core": "^7.6.2",
    "@babel/runtime": "^7.6.2",
    "@react-native-community/eslint-config": "^0.0.5",
    "babel-jest": "^24.9.0",
    "eslint": "^6.5.1",
    "jest": "^24.9.0",
    "metro-react-native-babel-preset": "^0.56.0",
    "react-test-renderer": "16.9.0"
  },
  "jest": {
    "preset": "react-native"
  }
}
firebase react-native react-native-firebase
1个回答
0
投票

通过清理节点缓存和纱线缓存以及重新安装React Native Firebase模块都在6.2.0中修复

最新问题
© www.soinside.com 2019 - 2024. All rights reserved.