Xcode-ReactNative-“无法找到模块(Metro-React-Native-Transformer)”

时间:2019-04-13 10:03:21

标签: xcode react-native npm

我正在尝试在我的ios应用中使用react-native-firebase。 当我尝试在iPhone X模拟器上运行它时,出现此错误:

https://imgur.com/a/dBIABWc

我已遵循https://rnfirebase.io/docs/v5.x.x/getting-started

中的所有必要步骤

项目信息:

  • Xcode:10.2
  • macOS:10.14.4
  • package.JSON:
"dependencies": {
    "metro-react-native-babel-transformer": "^0.53.1",
    "react": "16.8.3",
    "react-native": "0.58.0",
    "react-native-firebase": "^5.3.1",
    "react-native-gesture-handler": "^1.1.0",
    "react-navigation": "^3.6.1"
  },
  "devDependencies": {
    "@babel/core": "^7.4.3",
    "@babel/runtime": "^7.4.3",
    "babel-jest": "^24.7.1",
    "jest": "^24.7.1",
    "metro-react-native-babel-preset": "^0.53.1",
    "react-test-renderer": "16.8.3"
  },

0 个答案:

没有答案