import Vue from 'nativescript-vue'
import App from './components/App.vue'
import Orientation from 'nativescript-orientation'
import Vuex from 'vuex'
import Router from 'vue-router'
import Physics from 'nativescript-physics-js'
new Vue({
render: h => h('app'),
components: {
App
},
mounted() {
Orientation.setOrientation('landscape');
Orientation.disableRotation();
}
}).$start();
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-orientation", 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:530)
com.tns.Runtime.run(Runtime.java:522)
com.tns.NativeScriptApplication.onCreate(NativeScriptApplication.java:19)
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: "<unknown>, line: 1, column: 265
StackTrace:
Frame: function:'require', file:'', line: 1, column: 266
Frame: function:'', file:'file:///data/data/org.nativescript.nativescriptvuewebpack/files/app/app.js', line: 6, column: 35
Frame: function:'require', file:'', line: 1, column: 266
Error: com.tns.NativeScriptException: Failed to find module: "nativescript-orientation", 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:530)
com.tns.Runtime.run(Runtime.java:522)
com.tns.NativeScriptApplication.onCreate(NativeScriptApplication.java:19)
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: "<unknown>, line: 1, column: 265
StackTrace:
Frame: function:'require', file:'', line: 1, column: 266
Frame: function:'', file:'file:///data/data/org.nativescript.nativescriptvuewebpack/files/app/app.js', line: 6, column: 35
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-orientation", 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:530)
com.tns.Runtime.run(Runtime.java:522)
com.tns.NativeScriptApplication.onCreate(NativeScriptApplication.java:19)
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: "<unknown>, line: 1, column: 265
StackTrace:
Frame: function:'require', file:'', line: 1, column: 266
Frame: function:'', file:'file:///data/data/org.nativescript.nativescriptvuewebpack/files/app/app.js', line: 6, column: 35
Frame: function:'require', file:'', line: 1, column: 266
Error: com.tns.NativeScriptException: Failed to find module: "nativescript-orientation", 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:530)
com.tns.Runtime.run(Runtime.java:522)
com.tns.NativeScriptApplication.onCreate(NativeScriptApplication.java:19)
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: "<unknown>, line: 1, column: 265
StackTrace:
Frame: function:'require', file:'', line: 1, column: 266
Frame: function:'', file:'file:///data/data/org.nativescript.nativescriptvuewebpack/files/app/app.js', line: 6, column: 35
Frame: function:'require', file:'', line: 1, column: 266
at com.tns.Runtime.runModule(Native Method)
at com.tns.Runtime.runModule(Runtime.java:530)
at com.tns.Runtime.run(Runtime.java:522)
at com.tns.NativeScriptApplication.onCreate(NativeScriptApplication.java:19)
at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1118)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:5791)
... 8 more
Project successfully built.
Installing...
Successfully installed on device with identifier '0C285A6A-CE36-4D75-8122-D933CEC7F193'.
Successfully transferred all files.
Refreshing application...
Successfully synced application org.nativescript.nativescriptvuewebpack on device 0C285A6A-CE36-4D75-8122-D933CEC7F193.
Preparing project...
Project successfully prepared (iOS)
Successfully transferred app.css.
Successfully transferred app.js.
Refreshing application...
Successfully synced application org.nativescript.nativescriptvuewebpack on device 0C285A6A-CE36-4D75-8122-D933CEC7F193.
1 0x109235bc8 -[TNSRuntime executeModule:referredBy:]
2 0x108d17c71 main
3 0x10c06bd81 start
file:///app/app.js:6:42: JS ERROR Error: Could not find module 'nativescript-orientation'. Computed path '/Users/i/Library/Developer/CoreSimulator/Devices/0C285A6A-CE36-4D75-8122-D933CEC7F193/data/Containers/Bundle/Application/D0389E9B-0769-47CC-B7A4-F9BB2596F36D/tns.app/app/tns_modules/nativescript-orientation'.