错误:无法从react-native-elements / src / helpr中解析模块react-native-vector-icons / AntDesign Ant在Hastemodule映射中不存在

时间:2019-05-03 14:14:16

标签: react-native-android npm-start

在Metro bundle上运行软件包时出现错误 屏幕截图  https://imgur.com/nmwpLrd  https://imgur.com/QP4F1oE

my package json
{
  "name": "audi",
  "version": "0.0.1",
  "private": true,
  "scripts": {
    "start": "node node_modules/react-native/local-cli/cli.js start",
    "test": "jest"
  },
  "dependencies": {
    "buffer": "^5.2.1",
    "native-base": "^2.12.1",
    "npm": "^6.9.0",
    "react": "^16.8.6",
    "react-native": "^0.57.8",
    "react-native-audio": "^4.2.2",
    "react-native-audio-player-recorder": "^2.0.0",
    "react-native-audio-record": "^0.1.2",
    "react-native-audio-recorder-player": "^2.0.8",
    "react-native-elements": "^1.1.0",
    "react-native-fetch-blob": "^0.10.8",
    "react-native-image-picker": "^0.27.1",
    "react-native-media-meta": "0.0.10",
    "react-native-permissions": "^1.1.1",
    "react-native-sound": "^0.10.9",
    "react-native-vector-icons": "^5.0.0",
    "react-native-video": "^4.4.1",
    "react-native-video-processing": "^1.20.0",
    "react-navigation": "^2.16.0",
    "react-user-avatar": "^1.10.0",
    "update": "^0.7.4"
  },
  "devDependencies": {
    "babel-jest": "23.6.0",
    "babel-preset-react-native": "^4.0.1",
    "jest": "23.6.0",
    "metro-react-native-babel-preset": "0.45.6",
    "react-test-renderer": "16.5.0"
  },
  "jest": {
    "preset": "react-native"
  },
  "main": "index.js",
  "repository": {
    "type": "git",
    "url": "git+https://Aoudesh@bitbucket.org/Aoudesh/audi.git"
  },
  "author": "",
  "license": "ISC",
  "homepage": "https://bitbucket.org/Aoudesh/stigi#readme",
  "description": ""
}

寻找解决方案达数小时之久,如何解决此问题并删除了node_module文件夹,然后再次使用npm_install进行构建,但仍未解决,再次安装后对本机元素有反应 但是不知道为什么这个模块会抛出错误react-native-vector-icons / AntDesign 请让我知道..我在哪里得到wrng ... ,我的版本是 react-native-cli:2.0.1 反应本机:0.57.8 和npm版本 5.6.0

0 个答案:

没有答案