Agontuk / react-native-geolocation-service

React native geolocation service for iOS and android
https://www.npmjs.com/package/react-native-geolocation-service
MIT License
1.61k stars 292 forks source link

4.0.1 warning #180

Closed cristianoccazinsp closed 4 years ago

cristianoccazinsp commented 4 years ago

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.

Agontuk commented 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.

cristianoccazinsp commented 4 years ago

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?

Agontuk commented 4 years ago

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.

jbolotin commented 4 years ago

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!

orzhtml commented 4 years ago

[!] use_native_modules! skipped the react-native dependency 'react-native-geolocation-service'. No podspec file was found.

Agontuk commented 4 years ago

4.0.2 published, should fix the issue.