jawa-the-hutt / nativescript-vue-shadow

MIT License
15 stars 7 forks source link

After installing this on my local env, I am getting this error. #4

Open Timon0219 opened 4 years ago

Timon0219 commented 4 years ago

LOG from device OPPO A57: An uncaught Exception occurred on "main" thread. Calling js method onCreateView failed TypeError: nativeView.getBackground is not a function

StackTrace: applyOnAndroid(file:///data/data/org.nativescript.preview/files/app/vendor.js:459:32) at apply(file:///data/data/org.nativescript.preview/files/app/vendor.js:434:14) at applyShadow(file:///data/data/org.nativescript.preview/files/app/vendor.js:710:14) at load(file:///data/data/org.nativescript.preview/files/app/vendor.js:680:10) at handler(file:///data/data/org.nativescript.preview/files/app/tns_modules/tns-core-modules/ui/core/weak-event-listener/weak-event-listener.js:32:24) at Observable.notify(file:///data/data/org.nativescript.preview/files/app/tns_modules/tns-core-modules/data/observable/observable.js:110:15) at Observable._emit(file:///data/data/org.nativescript.preview/files/app/tns_modules/tns-core-modules/data/observable/observable.js:127:12) at ViewBase.onLoaded(file:///data/data/org.nativescript.preview/files/app/tns_modules/tns-core-modules/ui/core/view-base/view-base.js:237:10) at View.onLoaded(file:///data/data/org.nativescript.preview/files/app/tns_modules/tns-core-modules/ui/core/view/view.js:246:31) at ActionBar.onLoaded(file:///data/data/org.nativescript.preview/files/app/tns_modules/tns-core-modules/ui/action-bar/action-bar.js:155:31) at (file:///data/data/org.nativescript.preview/files/app/tns_modules/tns-core-modules/ui/core/view-base/view-base.js:312:85) at ViewBase.callFunctionWithSuper(file:///data/data/org.nativescript.preview/files/app/tns_modules/tns-core-modules/ui/core/view-base/view-base.js:305:5) at ViewBase.callLoaded(file:///data/data/org.nativescript.preview/files/app/tns_modules/tns-core-modules/ui/core/view-base/view-base.js:312:10) at ViewBase.loadView(file:///data/data/org.nativescript.preview/files/app/tns_modules/tns-core-modules/ui/core/view-base/view-base.js:440:12) at (file:///data/data/org.nativescript.preview/files/app/tns_modules/tns-core-modules/ui/core/view-base/view-base.js:234:13) at PageBase.eachChildView(file:///data/data/org.nativescript.preview/files/app/tns_modules/tns-core-modules/ui/page/page-common.js:128:7) at ViewCommon.eachChild(file:///data/data/org.nativescript.preview/files/app/tns_modules/tns-core-modules/ui/core/view/view-common.js:1010:10) at ViewBase.onLoaded(file:///data/data/org.nativescript.preview/files/app/tns_modules/tns-core-modules/ui/core/view-base/view-base.js:233:10) at View.onLoaded(file:///data/data/org.nativescript.preview/files/app/tns_modules/tns-core-modules/ui/core/view/view.js:246:31) at Page.onLoaded(file:///data/data/org.nativescript.preview/files/app/tns_modules/tns-core-modules/ui/page/page.js:43:31) at (file:///data/data/org.nativescript.preview/files/app/tns_modules/tns-core-modules/ui/core/view-base/view-base.js:312:85) at ViewBase.callFunctionWithSuper(file:///data/data/org.nativescript.preview/files/app/tns_modules/tns-core-modules/ui/core/view-base/view-base.js:305:5) at ViewBase.callLoaded(file:///data/data/org.nativescript.preview/files/app/tns_modules/tns-core-modules/ui/core/view-base/view-base.js:312:10) at ViewBase.loadView(file:///data/data/org.nativescript.preview/files/app/tns_modules/tns-core-modules/ui/core/view-base/view-base.js:440:12) at ViewBase._addViewCore(file:///data/data/org.nativescript.preview/files/app/tns_modules/tns-core-modules/ui/core/view-base/view-base.js:435:12) at ViewBase._addView(file:///data/data/org.nativescript.preview/files/app/tns_modules/tns-core-modules/ui/core/view-base/view-base.js:421:10) at FragmentCallbacksImplementation.onCreateView(file:///data/data/org.nativescript.preview/files/app/tns_modules/tns-core-modules/ui/frame/frame.js:687:13) at FragmentClass.onCreateView(file:///data/data/org.nativescript.preview/files/app/tns_modules/tns-core-modules/ui/frame/fragment.js:26:34) at com.tns.Runtime.callJSMethodNative(Native Method) at com.tns.Runtime.dispatchCallJSMethodNative(Runtime.java:1209) at com.tns.Runtime.callJSMethodImpl(Runtime.java:1096) at com.tns.Runtime.callJSMethod(Runtime.java:1083) at com.tns.Runtime.callJSMethod(Runtime.java:1063) at com.tns.Runtime.callJSMethod(Runtime.java:1055) at com.tns.FragmentClass.onCreateView(FragmentClass.java:54) at androidx.fragment.app.Fragment.performCreateView(Fragment.java:2439) at androidx.fragment.app.FragmentManagerImpl.moveToState(FragmentManager.java:1460) at androidx.fragment.app.FragmentManagerImpl.moveFragmentToExpectedState(FragmentManager.java:1784) at androidx.fragment.app.FragmentManagerImpl.moveToState(FragmentManager.java:1852) at androidx.fragment.app.BackStackRecord.executeOps(BackStackRecord.java:802) at androidx.fragment.app.FragmentManagerImpl.executeOps(FragmentManager.java:2625) at androidx.fragment.app.FragmentManagerImpl.executeOpsTogether(FragmentManager.java:2411) at androidx.fragment.app.FragmentManagerImpl.removeRedundantOperationsAndExecute(FragmentManager.java:2366) at androidx.fragment.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:2273) at androidx.fragment.app.FragmentManagerImpl$1.run(FragmentManager.java:733) at android.os.Handler.handleCallback(Handler.java:739) at android.os.Handler.dispatchMessage(Handler.java:95) at android.os.Looper.loop(Looper.java:179) at android.app.ActivityThread.main(ActivityThread.java:5769) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:674)

LOG from device OPPO A57: An uncaught Exception occurred on "main" thread. Calling js method onCreateView failed TypeError: nativeView.getBackground is not a function

StackTrace: applyOnAndroid(file:///data/data/org.nativescript.preview/files/app/vendor.js:459:32) at apply(file:///data/data/org.nativescript.preview/files/app/vendor.js:434:14) at applyShadow(file:///data/data/org.nativescript.preview/files/app/vendor.js:710:14) at load(file:///data/data/org.nativescript.preview/files/app/vendor.js:680:10) at handler(file:///data/data/org.nativescript.preview/files/app/tns_modules/tns-core-modules/ui/core/weak-event-listener/weak-event-listener.js:32:24) at Observable.notify(file:///data/data/org.nativescript.preview/files/app/tns_modules/tns-core-modules/data/observable/observable.js:110:15) at Observable._emit(file:///data/data/org.nativescript.preview/files/app/tns_modules/tns-core-modules/data/observable/observable.js:127:12) at ViewBase.onLoaded(file:///data/data/org.nativescript.preview/files/app/tns_modules/tns-core-modules/ui/core/view-base/view-base.js:237:10) at View.onLoaded(file:///data/data/org.nativescript.preview/files/app/tns_modules/tns-core-modules/ui/core/view/view.js:246:31) at ActionBar.onLoaded(file:///data/data/org.nativescript.preview/files/app/tns_modules/tns-core-modules/ui/action-bar/action-bar.js:155:31) at (file:///data/data/org.nativescript.preview/files/app/tns_modules/tns-core-modules/ui/core/view-base/view-base.js:312:85) at ViewBase.callFunctionWithSuper(file:///data/data/org.nativescript.preview/files/app/tns_modules/tns-core-modules/ui/core/view-base/view-base.js:305:5) at ViewBase.callLoaded(file:///data/data/org.nativescript.preview/files/app/tns_modules/tns-core-modules/ui/core/view-base/view-base.js:312:10) at ViewBase.loadView(file:///data/data/org.nativescript.preview/files/app/tns_modules/tns-core-modules/ui/core/view-base/view-base.js:440:12) at (file:///data/data/org.nativescript.preview/files/app/tns_modules/tns-core-modules/ui/core/view-base/view-base.js:234:13) at PageBase.eachChildView(file:///data/data/org.nativescript.preview/files/app/tns_modules/tns-core-modules/ui/page/page-common.js:128:7) at ViewCommon.eachChild(file:///data/data/org.nativescript.preview/files/app/tns_modules/tns-core-modules/ui/core/view/view-common.js:1010:10) at ViewBase.onLoaded(file:///data/data/org.nativescript.preview/files/app/tns_modules/tns-core-modules/ui/core/view-base/view-base.js:233:10) at View.onLoaded(file:///data/data/org.nativescript.preview/files/app/tns_modules/tns-core-modules/ui/core/view/view.js:246:31) at Page.onLoaded(file:///data/data/org.nativescript.preview/files/app/tns_modules/tns-core-modules/ui/page/page.js:43:31) at (file:///data/data/org.nativescript.preview/files/app/tns_modules/tns-core-modules/ui/core/view-base/view-base.js:312:85) at ViewBase.callFunctionWithSuper(file:///data/data/org.nativescript.preview/files/app/tns_modules/tns-core-modules/ui/core/view-base/view-base.js:305:5) at ViewBase.callLoaded(file:///data/data/org.nativescript.preview/files/app/tns_modules/tns-core-modules/ui/core/view-base/view-base.js:312:10) at ViewBase.loadView(file:///data/data/org.nativescript.preview/files/app/tns_modules/tns-core-modules/ui/core/view-base/view-base.js:440:12) at ViewBase._addViewCore(file:///data/data/org.nativescript.preview/files/app/tns_modules/tns-core-modules/ui/core/view-base/view-base.js:435:12) at ViewBase._addView(file:///data/data/org.nativescript.preview/files/app/tns_modules/tns-core-modules/ui/core/view-base/view-base.js:421:10) at FragmentCallbacksImplementation.onCreateView(file:///data/data/org.nativescript.preview/files/app/tns_modules/tns-core-modules/ui/frame/frame.js:687:13) at FragmentClass.onCreateView(file:///data/data/org.nativescript.preview/files/app/tns_modules/tns-core-modules/ui/frame/fragment.js:26:34) at com.tns.Runtime.callJSMethodNative(Native Method) at com.tns.Runtime.dispatchCallJSMethodNative(Runtime.java:1209) at com.tns.Runtime.callJSMethodImpl(Runtime.java:1096) at com.tns.Runtime.callJSMethod(Runtime.java:1083) at com.tns.Runtime.callJSMethod(Runtime.java:1063) at com.tns.Runtime.callJSMethod(Runtime.java:1055) at com.tns.FragmentClass.onCreateView(FragmentClass.java:54) at androidx.fragment.app.Fragment.performCreateView(Fragment.java:2439) at androidx.fragment.app.FragmentManagerImpl.moveToState(FragmentManager.java:1460) at androidx.fragment.app.FragmentManagerImpl.moveFragmentToExpectedState(FragmentManager.java:1784) at androidx.fragment.app.FragmentManagerImpl.moveToState(FragmentManager.java:1852) at androidx.fragment.app.BackStackRecord.executeOps(BackStackRecord.java:802) at androidx.fragment.app.FragmentManagerImpl.executeOps(FragmentManager.java:2625) at androidx.fragment.app.FragmentManagerImpl.executeOpsTogether(FragmentManager.java:2411) at androidx.fragment.app.FragmentManagerImpl.removeRedundantOperationsAndExecute(FragmentManager.java:2366) at androidx.fragment.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:2273) at androidx.fragment.app.FragmentManagerImpl$1.run(FragmentManager.java:733) at android.os.Handler.handleCallback(Handler.java:739) at android.os.Handler.dispatchMessage(Handler.java:95) at android.os.Looper.loop(Looper.java:179) at android.app.ActivityThread.main(ActivityThread.java:5769) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:674)