nativescript-community / gps

Tracks GPS location updates regardless of the app state. Does not depend on Google Play Services.
https://nativescript-community.github.io/gps/
Other
10 stars 2 forks source link

Export 'Accuracy' was not found in '@nativescript/core/ui/enums' #16

Closed LaKing closed 2 years ago

LaKing commented 3 years ago

Which platform(s) does your issue occur on?

Android, running on a real Android 9.

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

Is there any code involved?

webpack is watching the files...
assets by status 374 KiB [compared for emit]
  asset fonts/fa-solid-900.ttf 204 KiB [compared for emit] [from: app/fonts/fa-solid-900.ttf] [copied]
  asset fonts/fa-brands-400.ttf 131 KiB [compared for emit] [from: app/fonts/fa-brands-400.ttf] [copied]
  asset fonts/fa-regular-400.ttf 39.1 KiB [compared for emit] [from: app/fonts/fa-regular-400.ttf] [copied]
assets by status 7.49 MiB [emitted]
  asset vendor.js 6.93 MiB [emitted] (name: vendor) (id hint: defaultVendor)
  asset bundle.js 573 KiB [emitted] (name: bundle)
Entrypoint bundle 7.49 MiB = vendor.js 6.93 MiB bundle.js 573 KiB
runtime modules 25.1 KiB 13 modules
orphan modules 31.8 KiB [orphan] 12 modules
modules by path ./node_modules/ 2.61 MiB 297 modules
modules by path ./app/ 160 KiB
  modules by path ./app/components/*.vue 36.5 KiB 42 modules
  ./app/app.js 2.92 KiB [built] [code generated]
  ./app/app.android.scss 120 KiB [built] [code generated]
external "~/package.json" 42 bytes [optional] [built] [code generated]

WARNING in ./node_modules/@nativescript-community/gps/gps.android.js 154:46-59
export 'Accuracy' (imported as 'Accuracy') was not found in '@nativescript/core/ui/enums' (possible exports: AnimationCurve, CoreTypes, Enums)
 @ ./node_modules/@nativescript/webpack/dist/loaders/nativescript-worker-loader/index.js!./node_modules/vue-loader/lib/index.js??vue-loader-options!./app/components/Settings.vue?vue&type=script&lang=js& 50:0-51
 @ ./app/components/Settings.vue?vue&type=script&lang=js& 1:0-213 1:229-232 1:234-444 1:234-444
 @ ./app/components/Settings.vue 2:0-60 3:0-55 3:0-55 10:2-8
 @ ./node_modules/@nativescript/webpack/dist/loaders/nativescript-worker-loader/index.js!./node_modules/vue-loader/lib/index.js??vue-loader-options!./app/components/App.vue?vue&type=script&lang=js& 32:0-38 39:4-12
 @ ./app/components/App.vue?vue&type=script&lang=js& 1:0-208 1:224-227 1:229-434 1:229-434
 @ ./app/components/App.vue 2:0-55 3:0-50 3:0-50 10:2-8
 @ ./app/app.js 5:0-34 10:19-22

webpack 5.31.2 compiled with 1 warning in 12148 ms
Webpack compilation complete. Watching for file changes.
Updating runtime package.json with configuration values...
Project successfully prepared (android)
File change detected. Starting incremental webpack compilation...
assets by status 7.85 MiB [cached] 5 assets
Entrypoint bundle 7.49 MiB = vendor.js 6.93 MiB bundle.js 573 KiB
cached modules 2.8 MiB (javascript) 25.1 KiB (runtime) [cached] 404 modules

WARNING in ./node_modules/@nativescript-community/gps/gps.android.js 154:46-59
export 'Accuracy' (imported as 'Accuracy') was not found in '@nativescript/core/ui/enums' (possible exports: AnimationCurve, CoreTypes, Enums)
 @ ./node_modules/@nativescript/webpack/dist/loaders/nativescript-worker-loader/index.js!./node_modules/vue-loader/lib/index.js??vue-loader-options!./app/components/Settings.vue?vue&type=script&lang=js& 50:0-51
 @ ./app/components/Settings.vue?vue&type=script&lang=js& 1:0-213 1:229-232 1:234-444 1:234-444
 @ ./app/components/Settings.vue 2:0-60 3:0-55 3:0-55 10:2-8
 @ ./node_modules/@nativescript/webpack/dist/loaders/nativescript-worker-loader/index.js!./node_modules/vue-loader/lib/index.js??vue-loader-options!./app/components/App.vue?vue&type=script&lang=js& 32:0-38 39:4-12
 @ ./app/components/App.vue?vue&type=script&lang=js& 1:0-208 1:224-227 1:229-434 1:229-434
 @ ./app/components/App.vue 2:0-55 3:0-50 3:0-50 10:2-8
 @ ./app/app.js 5:0-34 10:19-22

webpack 5.31.2 compiled with 1 warning in 594 ms
farfromrefug commented 3 years ago

@LaKing published as 3.0.0

LaKing commented 2 years ago

@farfromrefug Thank you.

carlosdelfino commented 2 years ago

I get the same error with same Android but other dependencies:

  "dependencies": {
    "@angular-extensions/model": "^8.1.0",
    "@angular/animations": "~13.2.0",
    "@angular/cdk": "^8.1.2",
    "@angular/common": "~13.2.0",
    "@angular/compiler": "~13.2.0",
    "@angular/core": "~13.2.0",
    "@angular/forms": "~13.2.0",
    "@angular/http": "~8.0.0-beta.10",
    "@angular/material": "^8.1.2",
    "@angular/platform-browser": "~13.2.0",
    "@angular/platform-browser-dynamic": "~13.2.0",
    "@angular/router": "~13.2.0",
    "@nativescript-community/ble": "^3.1.6",
    "@nativescript-community/gps": "^3.1.3",
    "@nativescript/angular": "^13.0.0",
    "@nativescript/core": "^8.2.1",
    "@nativescript/geolocation": "^8.0.2",
    "@nstudio/nativescript-cardview": "^2.0.1",
    "@nstudio/nativescript-floatingactionbutton": "^3.0.4",
    "@nstudio/nativescript-loading-indicator": "^4.1.2",
    "encodeurl": "^1.0.2",
    "nativescript-background-http": "^4.2.1",
    "nativescript-calendar": "^3.0.0",
    "nativescript-google-maps-sdk": "^3.0.2",
    "nativescript-google-maps-utils": "^0.1.3",
    "nativescript-masked-text-field": "^4.0.3",
    "nativescript-ng2-fonticon": "^1.3.4",
    "nativescript-permissions": "^1.3.12",
    "nativescript-plugin-firebase": "^10.6.3",
    "nativescript-theme-core": "^2.0.24",
    "nativescript-ui-calendar": "^8.0.2",
    "openpgp": "git+https://github.com/carlosdelfino/nativescript-openpgpjs.git",
    "reflect-metadata": "^0.1.13",
    "rxjs": "~7.5.0",
    "rxjs-compat": "^6.5.2",
    "zone.js": "~0.11.5"
  },
  "devDependencies": {
    "@angular/cli": "^13.2.6",
    "@angular/compiler-cli": "~13.2.0",
    "@nativescript/android": "8.2.2",
    "@nativescript/schematics": "^0.6.0",
    "@nativescript/types": "~8.2.0",
    "@nativescript/webpack": "~5.0.0",
    "@ngtools/webpack": "~13.2.0",
    "@types/jasmine": "^3.3.13",
    "gulp": "^4.0.2",
    "gulp-exec": "^4.0.0",
    "nativescript": "^6.1.0",
    "run-sequence": "^2.2.1",
    "sass": "~1.49.9",
    "typescript": "~4.5.5",
    "uglifyjs-webpack-plugin": "^2.2.0"
  },