doomsower / react-native-yandexmapkit

React-Native wrapper around Yandex Map Kit
MIT License
31 stars 13 forks source link

Can't build project #1

Closed stereodenis closed 8 years ago

stereodenis commented 8 years ago

rnyandexmap h 2016-10-19 15-10-56

doomsower commented 8 years ago

What version of react-native are you using? Are you able to build example project?

stereodenis commented 8 years ago

@doomsower forgot to add to Podfile

# Pods for example
  pod 'React', :path => '../node_modules/react-native', :subspecs => [
    'Core',
    'RCTImage',
    'RCTNetwork',
    'RCTText',
    'RCTWebSocket',
    'RCTGeolocation'
  ]
stereodenis commented 8 years ago

@doomsower

Failed to build DependencyGraph: @providesModule naming collision: Duplicate module name: String.prototype.es6 Paths: /Users/stereodenis/work/evrone/one_button/node_modules/react-native/packager/react-packager/src/Resolver/polyfills/String.prototype.es6.js collides with /Users/stereodenis/work/evrone/one_button/ios/Pods/React/packager/react-packager/src/DependencyResolver/polyfills/String.prototype.es6.js

This error is caused by a @providesModule declaration with the same name across two different files. Error: @providesModule naming collision: Duplicate module name: String.prototype.es6 Paths: /Users/stereodenis/work/evrone/one_button/node_modules/react-native/packager/react-packager/src/Resolver/polyfills/String.prototype.es6.js collides with /Users/stereodenis/work/evrone/one_button/ios/Pods/React/packager/react-packager/src/DependencyResolver/polyfills/String.prototype.es6.js

This error is caused by a @providesModule declaration with the same name across two different files. at HasteMap._updateHasteMap (/Users/stereodenis/work/evrone/one_button/node_modules/react-native/packager/react-packager/src/node-haste/DependencyGraph/HasteMap.js:155:13) at module.getName.then.name (/Users/stereodenis/work/evrone/one_button/node_modules/react-native/packager/react-packager/src/node-haste/DependencyGraph/HasteMap.js:115:31)

doomsower commented 8 years ago

Seems that pod installer copied some js files into ios/Pods/React directory, and because of this packager has naming collision. This does not happen for me. What versions of react-native and cocoapods are you using? Try to clean node_modules and pods and do a fresh install.

stereodenis commented 8 years ago

cleaning Pods directory fixes this