Setup Gauge problem


#1

hello,

i did
tns plugin add nativescript-ui-gauge
but there no point in he package.js for nativescript-ui-gauge

I got an error:
No project found at or above ‘E:_projekts\XXX\vue-cli-test-app’ and neither was a --path specified.

where the problem, how to add the --path?

"scripts": {
    "build": "webpack --env.tnsAction build",
    "build:android": "npm run build -- --env.android",
    "build:ios": "npm run build -- --env.ios",
    "debug": "webpack --watch --env.tnsAction debug",
    "debug:android": "npm run debug -- --env.android",
    "debug:ios": "npm run debug -- --env.ios",
    "watch": "webpack --watch --env.tnsAction run",
    "watch:android": "npm run watch -- --env.android",
    "watch:ios": "npm run watch -- --env.ios",
    "clean": "rimraf dist"
  },
  "dependencies": {
    "vue-router": "^3.0.1",
    "vuex": "^3.0.1",
    "nativescript-theme-core": "^1.0.4",
    "nativescript-vue": "^1.3.1",
    "tns-core-modules": "~3.4.1"
  },
  "devDependencies": {
    "babel-core": "^6.26.0",
    "babel-loader": "^7.1.4",
    "babel-plugin-transform-object-rest-spread": "^6.26.0",
    "babel-preset-env": "^1.6.1",
    "copy-webpack-plugin": "^4.5.1",
    "css-loader": "^0.28.11",
    "extract-text-webpack-plugin": "^3.0.2",
    "fs-extra": "^5.0.0",
    "nativescript-vue-externals": "^0.2.0",
    "nativescript-vue-loader": "^0.1.5",
    "nativescript-vue-target": "^0.1.0",
    "nativescript-vue-template-compiler": "^1.3.1",
    "node-sass": "^4.7.2",
    "ns-vue-loader": "^0.1.2",
    "optimize-css-assets-webpack-plugin": "^3.2.0",
    "rimraf": "^2.6.2",
    "sass-loader": "^6.0.7",
    "vue-template-compiler": "^2.5.16",
    "webpack": "^3.11.0",
    "webpack-synchronizable-shell-plugin": "0.0.7",
    "winston-color": "^1.0.0"
  }

I am using nativescript-vue how can I use the pro elements?

regards


#2

Ok,

I found the answer on the forum, I have to add:

  "nativescript": {
    "id": "your.app.name",
    "tns-ios": {
      "version": "2.5.0"
    },
    "tns-android": {
      "version": "2.5.0"
    }
  },

to the package.json

but now there’s an error in the simulator:

An uncaught Exception occurred on “main” thread.
java.lang.RuntimeException: Unable to create application com.tns.NativeScriptApplication: com.tns.NativeScriptException:

Error calling module function

Error: com.tns.NativeScriptException: Failed to find module: “nativescript-ui-gauge/ui-gauge.common”, relative to: app/tns_modules/
com.tns.Module.resolvePathHelper(Module.java:146)
com.tns.Module.resolvePath(Module.java:55)
com.tns.Runtime.runModule(Native Method)
com.tns.Runtime.runModule(Runtime.java:542)
com.tns.Runtime.run(Runtime.java:534)
com.tns.NativeScriptApplication.onCreate(NativeScriptApplication.java:21)
android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1118)
android.app.ActivityThread.handleBindApplication(ActivityThread.java:5791)
android.app.ActivityThread.-wrap1(Unknown Source:0)
android.app.ActivityThread$H.handleMessage(ActivityThread.java:1661)
android.os.Handler.dispatchMessage(Handler.java:105)
android.os.Looper.loop(Looper.java:164)
android.app.ActivityThread.main(ActivityThread.java:6541)
java.lang.reflect.Method.invoke(Native Method)
com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240)
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:767)
File: ", line: 1, column: 265

StackTrace:
Frame: function:‘require’, file:’’, line: 1, column: 266
Frame: function:’’, file:‘file:///data/data/de.bluelemon.firstvuensapp/files/app/app.js’, line: 1, column: 196541
Frame: function:‘e’, file:‘file:///data/data/de.bluelemon.firstvuensapp/files/app/app.js’, line: 1, column: 161
Frame: function:’’, file:‘file:///data/data/de.bluelemon.firstvuensapp/files/app/app.js’, line: 1, column: 184235
Frame: function:‘e’, file:‘file:///data/data/de.bluelemon.firstvuensapp/files/app/app.js’, line: 1, column: 161
Frame: function:’’, file:‘file:///data/data/de.bluelemon.firstvuensapp/files/app/app.js’, line: 1, column: 147635
Frame: function:‘e’, file:‘file:///data/data/de.bluelemon.firstvuensapp/files/app/app.js’, line: 1, column: 161
Frame: function:’’, file:‘file:///data/data/de.bluelemon.firstvuensapp/files/app/app.js’, line: 1, column: 511
Frame: function:’’, file:‘file:///data/data/de.bluelemon.firstvuensapp/files/app/app.js’, line: 1, column: 521
Frame: function:‘require’, file:’’, line: 1, column: 266

Error: com.tns.NativeScriptException: Failed to find module: “nativescript-ui-gauge/ui-gauge.common”, relative to: app/tns_modules/
com.tns.Module.resolvePathHelper(Module.java:146)
com.tns.Module.resolvePath(Module.java:55)
com.tns.Runtime.runModule(Native Method)
com.tns.Runtime.runModule(Runtime.java:542)
com.tns.Runtime.run(Runtime.java:534)
com.tns.NativeScriptApplication.onCreate(NativeScriptApplication.java:21)
android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1118)
android.app.ActivityThread.handleBindApplication(ActivityThread.java:5791)
android.app.ActivityThread.-wrap1(Unknown Source:0)
android.app.ActivityThread$H.handleMessage(ActivityThread.java:1661)
android.os.Handler.dispatchMessage(Handler.java:105)
android.os.Looper.loop(Looper.java:164)
android.app.ActivityThread.main(ActivityThread.java:6541)
java.lang.reflect.Method.invoke(Native Method)
com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240)
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:767)
File: ", line: 1, column: 265

StackTrace:
Frame: function:‘require’, file:’’, line: 1, column: 266
Frame: function:’’, file:‘file:///data/data/de.bluelemon.firstvuensapp/files/app/app.js’, line: 1, column: 196541
Frame: function:‘e’, file:‘file:///data/data/de.bluelemon.firstvuensapp/files/app/app.js’, line: 1, column: 161
Frame: function:’’, file:‘file:///data/data/de.bluelemon.firstvuensapp/files/app/app.js’, line: 1, column: 184235
Frame: function:‘e’, file:‘file:///data/data/de.bluelemon.firstvuensapp/files/app/app.js’, line: 1, column: 161
Frame: function:’’, file:‘file:///data/data/de.bluelemon.firstvuensapp/files/app/app.js’, line: 1, column: 147635
Frame: function:‘e’, file:‘file:///data/data/de.bluelemon.firstvuensapp/files/app/app.js’, line: 1, column: 161
Frame: function:’’, file:‘file:///data/data/de.bluelemon.firstvuensapp/files/app/app.js’, line: 1, column: 511
Frame: function:’’, file:‘file:///data/data/de.bluelemon.firstvuensapp/files/app/app.js’, line: 1, column: 521
Frame: function:‘require’, file:’’, line: 1, column: 266

at android.app.ActivityThread.handleBindApplication(ActivityThread.java:5794)
at android.app.ActivityThread.-wrap1(Unknown Source:0)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1661)
at android.os.Handler.dispatchMessage(Handler.java:105)
at android.os.Looper.loop(Looper.java:164)
at android.app.ActivityThread.main(ActivityThread.java:6541)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:767)

Caused by: com.tns.NativeScriptException:

Error calling module function

Error: com.tns.NativeScriptException: Failed to find module: “nativescript-ui-gauge/ui-gauge.common”, relative to: app/tns_modules/
com.tns.Module.resolvePathHelper(Module.java:146)
com.tns.Module.resolvePath(Module.java:55)
com.tns.Runtime.runModule(Native Method)
com.tns.Runtime.runModule(Runtime.java:542)
com.tns.Runtime.run(Runtime.java:534)
com.tns.NativeScriptApplication.onCreate(NativeScriptApplication.java:21)
android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1118)
android.app.ActivityThread.handleBindApplication(ActivityThread.java:5791)
android.app.ActivityThread.-wrap1(Unknown Source:0)
android.app.ActivityThread$H.handleMessage(ActivityThread.java:1661)
android.os.Handler.dispatchMessage(Handler.java:105)
android.os.Looper.loop(Looper.java:164)
android.app.ActivityThread.main(ActivityThread.java:6541)
java.lang.reflect.Method.invoke(Native Method)
com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240)
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:767)
File: ", line: 1, column: 265

StackTrace:
Frame: function:‘require’, file:’’, line: 1, column: 266
Frame: function:’’, file:‘file:///data/data/de.bluelemon.firstvuensapp/files/app/app.js’, line: 1, column: 196541
Frame: function:‘e’, file:‘file:///data/data/de.bluelemon.firstvuensapp/files/app/app.js’, line: 1, column: 161
Frame: function:’’, file:‘file:///data/data/de.bluelemon.firstvuensapp/files/app/app.js’, line: 1, column: 184235
Frame: function:‘e’, file:‘file:///data/data/de.bluelemon.firstvuensapp/files/app/app.js’, line: 1, column: 161
Frame: function:’’, file:‘file:///data/data/de.bluelemon.firstvuensapp/files/app/app.js’, line: 1, column: 147635
Frame: function:‘e’, file:‘file:///data/data/de.bluelemon.firstvuensapp/files/app/app.js’, line: 1, column: 161
Frame: function:’’, file:‘file:///data/data/de.bluelemon.firstvuensapp/files/app/app.js’, line: 1, column: 511
Frame: function:’’, file:‘file:///data/data/de.bluelemon.firstvuensapp/files/app/app.js’, line: 1, column: 521
Frame: function:‘require’, file:’’, line: 1, column: 266

Error: com.tns.NativeScriptException: Failed to find module: “nativescript-ui-gauge/ui-gauge.common”, relative to: app/tns_modules/
com.tns.Module.resolvePathHelper(Module.java:146)
com.tns.Module.resolvePath(Module.java:55)
com.tns.Runtime.runModule(Native Method)
com.tns.Runtime.runModule(Runtime.java:542)
com.tns.Runtime.run(Runtime.java:534)
com.tns.NativeScriptApplication.onCreate(NativeScriptApplication.java:21)
android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1118)
android.app.ActivityThread.handleBindApplication(ActivityThread.java:5791)
android.app.ActivityThread.-wrap1(Unknown Source:0)
android.app.ActivityThread$H.handleMessage(ActivityThread.java:1661)
android.os.Handler.dispatchMessage(Handler.java:105)
android.os.Looper.loop(Looper.java:164)
android.app.ActivityThread.main(ActivityThread.java:6541)
java.lang.reflect.Method.invoke(Native Method)
com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240)
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:767)
File: ", line: 1, column: 265

StackTrace:
Frame: function:‘require’, file:’’, line: 1, column: 266
Frame: function:’’, file:‘file:///data/data/de.bluelemon.firstvuensapp/files/app/app.js’, line: 1, column: 196541
Frame: function:‘e’, file:‘file:///data/data/de.bluelemon.firstvuensapp/files/app/app.js’, line: 1, column: 161
Frame: function:’’, file:‘file:///data/data/de.bluelemon.firstvuensapp/files/app/app.js’, line: 1, column: 184235
Frame: function:‘e’, file:‘file:///data/data/de.bluelemon.firstvuensapp/files/app/app.js’, line: 1, column: 161
Frame: function:’’, file:‘file:///data/data/de.bluelemon.firstvuensapp/files/app/app.js’, line: 1, column: 147635
Frame: function:‘e’, file:‘file:///data/data/de.bluelemon.firstvuensapp/files/app/app.js’, line: 1, column: 161
Frame: function:’’, file:‘file:///data/data/de.bluelemon.firstvuensapp/files/app/app.js’, line: 1, column: 511
Frame: function:’’, file:‘file:///data/data/de.bluelemon.firstvuensapp/files/app/app.js’, line: 1, column: 521
Frame: function:‘require’, file:’’, line: 1, column: 266

at com.tns.Runtime.runModule(Native Method)
at com.tns.Runtime.runModule(Runtime.java:542)
at com.tns.Runtime.run(Runtime.java:534)
at com.tns.NativeScriptApplication.onCreate(NativeScriptApplication.java:21)
at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1118)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:5791)
... 8 more