-
-
Notifications
You must be signed in to change notification settings - Fork 77
Cannot find name 'CLAuthorizationStatus' #189
Comments
Until the type is added and the issue is fixed, then you can add the following to your
The reason i'm choosing |
Hi, I got this error today too. |
Hi @ZeroCoolJr, thank you for reporting this. Do you reproduce that in the plugin's demo projects? I did not manage to do that there. Also, do you have
in your package.json's devDependencies and references.d.ts file with:
It would be great if you can send source code of the entire app that reproduces this error. Thanks! |
Found the issue, ignore the previous comment. |
Work it! |
Full error message
node_modules/nativescript-geolocation/location-monitor.d.ts(112,48): error TS2304: Cannot find name 'CLAuthorizationStatus'. TypeScript compiler failed with exit code 1
Which platform(s) does your issue occur on?
tns
configured automaticallyPlease, provide the following version numbers that your issue occurs with:
"dependencies": {
"nativescript-geolocation": "^4.4.0",
"nativescript-theme-core": "~1.0.4",
"tns-core-modules": "~5.1.0"
},
"devDependencies": {
"nativescript-dev-sass": "~1.6.0",
"nativescript-dev-typescript": "~0.7.0",
"nativescript-dev-webpack": "~0.19.0",
"tslint": "~5.11.0"
}
Please, tell us how to recreate the issue in as much detail as possible.
Error appears when doing
tns run android
but the project continues to run.Is there any code involved?
Tried to to import only what's needed which is
getCurrentLocation
rather thanimport * as geolocation from "nativescript-geolocation";
but it still displays the error.The text was updated successfully, but these errors were encountered: