Closed stereodenis closed 8 years ago
What version of react-native are you using? Are you able to build example project?
@doomsower forgot to add to Podfile
# Pods for example
pod 'React', :path => '../node_modules/react-native', :subspecs => [
'Core',
'RCTImage',
'RCTNetwork',
'RCTText',
'RCTWebSocket',
'RCTGeolocation'
]
@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)
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.
cleaning Pods directory fixes this