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

Name Collision #27

Closed talbenbasat closed 7 years ago

talbenbasat commented 7 years ago

Hi,

Looks like a great package but i cant use it due to a collision. It might be connected to #6 or #8 but it appears to be in a different location

This is the error im getting

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

This warning is caused by a @providesModule declaration with the same name across two different files.
Failed to build DependencyGraph: @providesModule naming collision:
  Duplicate module name: react-native-packager
  Paths: project/node_modules/react-native/packager/package.json collides with project/node_modules/react-native-clean-form/node_modules/react-native/packager/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-packager
  Paths: project/node_modules/react-native/packager/package.json collides with project/node_modules/react-native-clean-form/node_modules/react-native/packager/package.json

This error is caused by a @providesModule declaration with the same name across two different files.
    at HasteMap._updateHasteMap (project/node_modules/react-native/packager/react-packager/src/node-haste/DependencyGraph/HasteMap.js:158:13)
    at p.getName.then.name (project/node_modules/react-native/packager/react-packager/src/node-haste/DependencyGraph/HasteMap.js:133:31)
markusguenther commented 7 years ago

Hmm I had this with the vector-icons and fixed this for me and the example app. Did you use npm install or yarn install. Because I also had an issue with yarn when I install the package.

Would be nice if you can provide more information :)

markusguenther commented 7 years ago

@talbenbasat Do you can provide more information on that issue?

talbenbasat commented 7 years ago

Hi,

I'm closing the issue it was my mistake Thanks for the help :)

markusguenther commented 7 years ago

Your welcome :)

MattyK14 commented 7 years ago

@talbenbasat what was the problem?

talbenbasat commented 7 years ago

@MattyK14 Don't remember. I think i've changed to the latest version and it worked

markusguenther commented 7 years ago

@MattyK14 I guess it happens because the npm package was not updated and here we had fixed the issues already.