Skip to content
This repository was archived by the owner on Nov 8, 2023. It is now read-only.
This repository was archived by the owner on Nov 8, 2023. It is now read-only.

Cannot find name 'CLAuthorizationStatus' #189

@ZeroCoolJr

Description

@ZeroCoolJr

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?

  • only have Android emulator that tns configured automatically

Please, provide the following version numbers that your issue occurs with:

  • CLI: 5.1.1
  • Cross-platform modules: 5.1.2
  • Runtime(s): tns-android & tns-ios= 5.1.0
  • Plugin(s):
    "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 than import * as geolocation from "nativescript-geolocation"; but it still displays the error.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions