React Native Duplicate Identification Column

When I install a specific npm package in my own response project and try to run it, I get the following error:

This error is caused by a @providesModule declaration with the same name accross two different files.
Error: @providesModule naming collision:
Duplicate module name: promiseRejectionIsError
Paths:

projectname/node_modules/react-native-stripe-api/node_modules/react-native/Libraries/promiseRejectionIsError.js collides with

projectname/node_modules/react-native/Libraries/promiseRejectionIsError.js

Problem: This package react-native-stripe-apiseems to install another responsive and responsive module that conflicts with all project modules.

I think the reason is that a particular version of reactive and responsive modules is defined as a dependency in the reaction-native-stripe-api / package.json:

  "dependencies": {
    "babel-polyfill": "6.9.1",
    "react": "15.1.0",
    "react-native": "0.27.2"
  },

It seems that they should be removed.

Can anyone with more knowledge of npm confirm this, is actually the right way to define node dependencies. And an appropriate solution to solve the problem.

+4
2

-, npm , node.

react peerDependencies

.

Quickfix:

Longfix:

+5

node_modules, npm cache clean, , (, react-native-packager-cache-81b2c446 ..), npm install

0

Source: https://habr.com/ru/post/1649728/


All Articles