esbenp / react-native-clean-form

Easy react-native forms using bootstrap-like syntax with redux-form+immutablejs integration. Styled using styled-components
http://esbenp.github.io/2017/01/06/react-native-redux-form-immutable-styled-components/
MIT License
478 stars 83 forks source link

naming collision on npm start #37

Closed anthonychung14 closed 7 years ago

anthonychung14 commented 7 years ago

hi there!

this is a great library. love it so far

ran into this error message after npm install

jest-haste-map: @providesModule naming collision:
  Duplicate module name: react-native
  Paths: /Users/ACKeepingitCoo/projects/mobile-1/node_modules/react-native-clean-form/node_modules/react-native/package.json collides with /Users/ACKeepingitCoo/projects/mobile-1/node_modules/react-native/package.json

This warning is caused by a @providesModule declaration with the same name across two different files.

I can fix it by running

rm -r node_modules/react-native-clean-form/node_modules , but on installing a new dependency, I run into the same problem

package.json for your reference

"dependencies": {
    "expo": "^15.1.0",
    "immutable": "^3.8.1",
    "react": "~15.4.0",
    "react-native": "0.42.3",
    "react-native-clean-form": "^0.1.0",
    "react-native-local-mongodb": "^1.8.2",
    "react-native-router-flux": "^3.38.0",
    "react-native-vector-icons": "^4.0.1",
    "react-redux": "^5.0.3",
    "react-router": "^4.0.0",
    "redux-form": "^6.6.2",
    "redux-observable": "^0.14.1",
    "redux-saga": "^0.14.6",
    "redux-thunk": "^2.2.0",
    "reselect": "^3.0.0",
    "rxjs": "^5.3.0",
    "uuid-v4": "^0.1.0"
  }
markusguenther commented 7 years ago

Thank you for the report. Will try this soon :)

anthonychung14 commented 7 years ago

ayyeeee it's working since you pushed latest to NPM registry