Naming collision when React Cocoapod is added
See original GitHub issueIβm currently having an issue where the same file is being added two times to the project (Xcode).
The issue is with the polyfills.js
file but it is adding React again. All the files added are already in the project added by npm
.
β> ~/D/P/QueueProject on master β¨― react-native start 21:25:13
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β Running packager on port 8081. β
β β
β Keep this packager running while developing on any JS projects. Feel β
β free to close this tab and run your own packager instance if you β
β prefer. β
β β
β https://github.com/facebook/react-native β
β β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
Looking for JS files in
/Users/joanbarros/Development/Projects/QueueProject
[10:21:11 PM] <START> Building Dependency Graph
[10:21:11 PM] <START> Crawling File System
[Hot Module Replacement] Server listening on /hot
React packager ready.
[10:21:12 PM] <END> Crawling File System (1152ms)
[10:21:12 PM] <START> Building in-memory fs for JavaScript
[10:21:12 PM] <END> Building in-memory fs for JavaScript (640ms)
[10:21:12 PM] <START> Building in-memory fs for Assets
[10:21:13 PM] <END> Building in-memory fs for Assets (365ms)
[10:21:13 PM] <START> Building Haste Map
[10:21:13 PM] <START> Building (deprecated) Asset Map
[10:21:13 PM] <END> Building (deprecated) Asset Map (68ms)
Failed to build DependencyGraph: Naming collision detected: /Users/joanbarros/Development/Projects/QueueProject/ios/Pods/React/packager/react-packager/src/DependencyResolver/polyfills/polyfills.js collides with /Users/joanbarros/Development/Projects/QueueProject/node_modules/react-native/packager/react-packager/src/Resolver/polyfills/polyfills.js
Error: Naming collision detected: /Users/joanbarros/Development/Projects/QueueProject/ios/Pods/React/packager/react-packager/src/DependencyResolver/polyfills/polyfills.js collides with /Users/joanbarros/Development/Projects/QueueProject/node_modules/react-native/packager/react-packager/src/Resolver/polyfills/polyfills.js
at HasteMap._updateHasteMap (HasteMap.js:132:13)
at HasteMap.js:103:28
at tryCallOne (/Users/joanbarros/Development/Projects/QueueProject/node_modules/promise/lib/core.js:37:12)
at /Users/joanbarros/Development/Projects/QueueProject/node_modules/promise/lib/core.js:123:15
at flush (/Users/joanbarros/Development/Projects/QueueProject/node_modules/asap/raw.js:50:29)
at _combinedTickCallback (node.js:370:9)
at process._tickCallback (node.js:401:11)
Issue Analytics
- State:
- Created 7 years ago
- Reactions:3
- Comments:6
Top Results From Across the Web
Error: Naming collision detected - react native - Stack Overflow
My CocoaPods version is 0.39.Node version is 5.3.0.React Native version is 0.14.2. When I deleted react-native folder,It's works.
Read more >Podspec Syntax Reference v1.11.2 - CocoaPods Guides
A specification describes a version of Pod library. It includes details about where the source should be fetched from, what files to use,...
Read more >Managing Private Pods With CocoaPods - Code - Envato Tuts+
It's key that you use the same name you previously used to add the private specs repository to CocoaPods. The last argument is...
Read more >Deploying React Native to Bitrise, Fabric, CircleCI - Medium
"name": "react-native-avoid-collision" ... In theory, we can just add add a React Native app and Bitrise can build iOS and Android apps.
Read more >symbol collision being reported on⦠| Apple Developer Forums
I was at first very confused because there is actually no file on my system with the name /usr/lib/libauthinstall.dylib. While this makes the...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@johncblandii we had a similar issue on gitpoint and ended up coming up with this solution: https://github.com/gitpoint/git-point/blob/master/rn-cli.config.js
Closing this as no feedback was provided.