无法解析模块@ expo / vector-icons / FontAwesome

时间:2019-07-05 10:26:20

标签: reactjs react-native babeljs

我不断收到此错误,该如何解决?

我已经安装了metro-react-native-babel-preset,我的babelrc是:

{
  "presets": ["module:metro-react-native-babel-preset"]
}

包装json:

{
  "scripts": {
    "start": "react-native start",
    "android": "react-native run-android",
    "ios": "react-native run-ios",
    "test": "node ./node_modules/jest/bin/jest.js --watchAll"
  },
  "jest": {
    "preset": "react-native"
  },
  "dependencies": {
    "@babel/runtime": "^7.0.0",
    "@react-native-community/async-storage": "^1.4.2",
    "react": "16.5.0",
    "react-dom": "^16.8.6",
    "react-native": "0.57.1",
    "react-native-circular-progress": "^1.1.0",
    "react-native-elements": "^1.1.0",
    "react-native-share": "^1.2.1",
    "react-native-svg": "^9.5.1",
    "react-native-vector-icons": "^6.6.0",
    "react-native-webview": "^5.8.0",
    "react-native-webview-bridge": "^0.40.1",
    "react-native-youtube": "^1.1.0",
    "react-navigation": "^3.0.9",
    "react-redux": "^6.0.1",
    "redux": "^4.0.1",
    "redux-persist": "^5.10.0",
    "redux-thunk": "^2.3.0"
  },
  "devDependencies": {
    "jest": "^24.8.0",
    "metro-react-native-babel-preset": "^0.54.1",
    "prettier": "^1.18.2",
    "react-native-dotenv": "^0.2.0",
    "react-native-gesture-handler": "1.0.16",
    "react-native-responsive-image": "^2.3.1",
    "redux-logger": "^3.0.6"
  },
  "rnpm": {
    "assets": [
      "./assets/fonts"
    ]
  },
  "private": true
}

0 个答案:

没有答案