Skip to content

Duplicate module name: react-native #2

@zakharov-dy

Description

@zakharov-dy
Loading dependency graph...
React packager ready.

Loading dependency graph...
Bundling `index.android.js`
  Analysing...Failed to build DependencyGraph: @providesModule naming collision:
  Duplicate module name: react-native
  Paths: .../node_modules/react-native/package.json collides with .../node_modules/react-native-keyboard/node_modules/react-native/package.json

This error is caused by a @providesModule declaration with the same name across two different files.
Error: @providesModule naming collision:
  Duplicate module name: react-native
  Paths: .../node_modules/react-native/package.json collides with .../node_modules/react-native-keyboard/node_modules/react-native/package.json

node v7.4.0
npm v4.3.0

{
....
  "dependencies": {
    "apisauce": "^0.6.0",
    "format-json": "^1.0.3",
    "lodash": "^4.17.2",
    "native-base": "^2.0.6",
    "querystringify": "0.0.4",
    "ramda": "^0.22.1",
    "react": "~15.4.0-rc.4",
    "react-native": "^0.42.0",
    "react-native-animatable": "^0.6.0",
    "react-native-config": "^0.1.2",
    "react-native-device-info": "^0.9.6",
    "react-native-drawer": "^2.3.0",
    "react-native-i18n": "^0.1.1",
    "react-native-keyboard": "^0.1.1",
    "react-native-maps": "^0.11.0",
    "react-native-router-flux": "^3.37.0",
    "react-native-vector-icons": "^4.0.0",
    "react-redux": "^4.4.6",
    "redux": "^3.6.0",
    "redux-logger": "^2.7.4",
    "redux-persist": "^3.5.0",
    "redux-saga": "^0.13.0",
    "reduxsauce": "0.2.0",
    "seamless-immutable": "^6.3.0"
  },
  "devDependencies": {
    "ava": "^0.17.0",
    "babel-eslint": "^7.1.1",
    "babel-preset-es2015": "^6.18.0",
    "enzyme": "^2.6.0",
    "flow-bin": "0.33.0",
    "ghooks": "^1.3.2",
    "mockery": "^2.0.0",
    "nyc": "^9.0.1",
    "react-addons-test-utils": "^15.3.1",
    "react-dom": "^15.4.0",
    "react-native-mock": "^0.2.8",
    "reactotron-apisauce": "^1.5.2",
    "reactotron-react-native": "^1.5.2",
    "reactotron-redux": "^1.5.2",
    "reactotron-redux-saga": "^1.5.2",
    "snazzy": "^5.0.0",
    "standard": "8.6.0",
    "standard-flow": "^1.0.0"
  }
....
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions