Closed cristianoccazinsp closed 4 years ago
Try rm -rf node_modules/react-native-geolocation-service/ios
. ios folder was mistakenly added when publishing to npm.
Why @react-native-community/geolocation is installed twice ? You shouldn't add it as a dependency in your package.json.
I'm almost sure I tried deleting the folder, but the iOS folder came back somehow.
About the duplicate, perhaps I'm wrong and it only gets installed once, but I had to make some fixes to the iOS version of @react-native-community/geolocation, so I need to install it from my fork/github. Now that I think of, even if it is listed as a dependency, the native code should be installed only once right?
I'm almost sure I tried deleting the folder, but the iOS folder came back somehow.
About the duplicate, perhaps I'm wrong and it only gets installed once, but I had to make some fixes to the iOS version of @react-native-community/geolocation, so I need to install it from my fork/github. Now that I think of, even if it is listed as a dependency, the native code should be installed only once right?
There can be duplicate packages in node_modules with different versions, but react-native will use only one automatically or that you pointed in podfile.
Thanks for the great library, @Agontuk. Is it possible to release a new version with node_modules/react-native-geolocation-service/ios
removed? I followed your instructions, and it does fix the problem temporarily for me (until having to run npm install
again), but it took a bit of hunting to find this issue, and I imagine everyone updating to 4.0.1 will experience the same problem. Thanks again for the library, and I'm so looking forward to the next release to remove the dependency on @react-native-community/geolocation!
[!] use_native_modules! skipped the react-native dependency 'react-native-geolocation-service'. No podspec file was found.
4.0.2 published, should fix the issue.
Updating from 4.0.0 to 4.0.1 is raising the following warning, can you silence this somehow?
[!] use_native_modules! skipped the react-native dependency 'react-native-geolocation-service'. No podspec file was found.
Lastly, could the dependency to @react-native-community/geolocation be made a peer dependency? Otherwise, the library ends up installed twice.