My package.json is as follows:
"nativescript": {
"id": "org.nativescript.test",
"tns-ios": {
"version": "2.5.0"
}
},
"dependencies": {
"@angular/common": "2.4.3",
"@angular/compiler": "2.4.3",
"@angular/core": "2.4.3",
"@angular/forms": "2.4.3",
"@angular/http": "2.4.3",
"@angular/platform-browser": "2.4.3",
"@angular/platform-browser-dynamic": "2.4.3",
"@angular/router": "3.4.3",
"nativescript-angular": "1.4.0",
"nativescript-couchbase": "^1.0.17",
"nativescript-geolocation": "0.0.19",
"nativescript-theme-core": "~1.0.2",
"reflect-metadata": "~0.1.8",
"rxjs": "~5.0.1",
"tns-core-modules": "2.5.1"
},
"devDependencies": {
"babel-traverse": "6.23.1",
"babel-types": "6.23.0",
"babylon": "6.16.1",
"lazy": "1.0.11",
"nativescript-dev-android-snapshot": "^0..",
"nativescript-dev-typescript": "~0.3.5",
"typescript": "~2.1.0",
"zone.js": "~0.7.2"
}
I get the following error at runtime when it tries to create a new instance of the Location class on iOS:
TypeError: undefined is not a constructor (evaluating 'new nativescript_geolocation_1.Location()')