react-native-background-geolocation: App build Failed with react-native-background-geolocation-android(2.10.0)
Your Environment
- Plugin version: 2.10.1
- Platform: Android
- React Native version (
react-native -v
): 0.49.3
Expected Behavior
I cloned your demo application and remove existing react-native-background-geolocation and added react-native-background-geolocation-android. After all the npm install and react-native link it is giving the error while building the app in emulator.
Actual Behavior
Build Failed with following error
Bundling index.android.js
[development, non-minified] ░░░░░░░░░░░░░░░░ 0.0% (0/1)SyntaxError: Unexpected token @ in JSON at position 1374
at JSON.parse (<anonymous>)
at module.exports (/home/msuser1/workspace/vicc/BGGEOAPP/rn-background-geolocation-demo/node_modules/jest-haste-map/build/worker.js:65:29)
at handle (/home/msuser1/workspace/vicc/BGGEOAPP/rn-background-geolocation-demo/node_modules/worker-farm/lib/child/index.js:44:8)
at process.<anonymous> (/home/msuser1/workspace/vicc/BGGEOAPP/rn-background-geolocation-demo/node_modules/worker-farm/lib/child/index.js:51:3)
at emitTwo (events.js:106:13)
at process.emit (events.js:194:7)
at process.nextTick (internal/child_process.js:766:12)
at _combinedTickCallback (internal/process/next_tick.js:73:7)
Bundling index.android.js
[development, non-minified] 0.0% (0/1), failed.
Loading dependency graph…
Steps to Reproduce
- Cloned the Demo Application.
- react-native unlink react-native-background-geolocation
- react-native uninstall react-native-background-geolocation
- npm install react-native-background-geolocation-android (private respository installed through token).
- react-native link react-native-background-geolocation-android
- changed repositories { flatDir { dirs “…/…/node_modules/react-native-background-geolocation/android/libs” } }
with
repositories {
flatDir {
dirs "../../node_modules/react-native-background-geolocation-android/android/libs"
}
}
Context
Building A Demo Application with the latest react-native-background-geolocation-android and understanding of the functionality of different configurations.
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 22 (13 by maintainers)
Setting it back to
26.1.0
, all happy now: