React Native-无法从项目的依赖模块解析模块react-native

时间:2018-12-03 17:21:20

标签: node.js react-native npm

我的所有图书馆项目的依赖模块都无法从其javascript导入行中解析模块 react-native

错误示例如下

  

捆绑失败:错误:无法从 C:\ Users \ USER \ AppData \ Local \ Yarn \ Data \ link \ react-native-lib \ node_modules \ react-native-loading-中解析模块react-native spinner-overlay \ index.js :Haste模块映射中不存在模块react-native

我的应用程序项目的 package.json

  "dependencies": {
    "react": "16.3.1",
    "react-native": "0.55.4"
  },
  "devDependencies": {
    "babel-jest": "23.6.0",
    "babel-preset-react-native": "4.0.1",
    "jest": "23.6.0",
    "react-test-renderer": "16.3.1"
  }

我的图书馆项目的 package.json yarn link版来自应用程序项目)

  "peerDependencies": {
    "react": "16.3.1",
    "react-native": "0.55.4"
  },
  "dependencies": {
    "react-native-loading-spinner-overlay": "^1.0.1",
    "react-native-modal": "^7.0.1",
    "react-native-simple-radio-button": "^2.7.3",
    "react-native-tab-view": "^1.3.1",
    "react-native-vector-icons": "^6.1.0"
  }

我看了一下模块react-native-modal的依赖关系,它的依赖关系是模块react-native-animatable。但是仍然不知道他们如何在开发中将其导入

0 个答案:

没有答案