com.tns.NativeScriptException: Calling js method onClick failed [object Object] File: "file:///data/data/org.nativescript.Groceries/files/app/tns_modules/@angular/core/bundles/core.umd.js, line: 12760, column: 20 StackTrace: Frame: function:'DebugAppView._rethrowWithContext', file:'file:///data/data/org.nativescript.Groceries/files/app/tns_modules/@angular/core/bundles/core.umd.js', line: 12760, column: 21 Frame: function:'', file:'file:///data/data/org.nativescript.Groceries/files/app/tns_modules/@angular/core/bundles/core.umd.js', line: 12777, column: 27 Frame: function:'', file:'file:///data/data/org.nativescript.Groceries/files/app/tns_modules/nativescript-angular/renderer.js', line: 213, column: 26 Frame: function:'ZoneDelegate.invoke', file:'file:///data/data/org.nativescript.Groceries/files/app/tns_modules/nativescript-angular/zone-js/dist/zone-nativescript.js', line: 190, column: 28 Frame: function:'onInvoke', file:'file:///data/data/org.nativescript.Groceries/files/app/tns_modules/@angular/core/bundles/core.umd.js', line: 4391, column: 41 Frame: function:'ZoneDelegate.invoke', file:'file:///data/data/org.nativescript.Groceries/files/app/tns_modules/nativescript-angular/zone-js/dist/zone-nativescript.js', line: 189, column: 34 Frame: function:'Zone.run', file:'file:///data/data/org.nativescript.Groceries/files/app/tns_modules/nativescript-angular/zone-js/dist/zone-nativescript.js', line: 83, column: 43 Frame: function:'NgZone.run', file:'file:///data/data/org.nativescript.Groceries/files/app/tns_modules/@angular/core/bundles/core.umd.js', line: 4260, column: 66 Frame: function:'zonedCallback', file:'file:///data/data/org.nativescript.Groceries/files/app/tns_modules/nativescript-angular/renderer.js', line: 212, column: 24 Frame: function:'Observable.notify', file:'file:///data/data/org.nativescript.Groceries/files/app/tns_modules/data/observable/observable.js', line: 149, column: 23 Frame: function:'Observable._emit', file:'file:///data/data/org.nativescript.Groceries/files/app/tns_modules/data/observable/observable.js', line: 168, column: 18 Frame: function:'onClick', file:'file:///data/data/org.nativescript.Groceries/files/app/tns_modules/ui/button/button.js', line: 35, column: 32


Solutions on the web54

Solution icon of github
Calling js method onClick failed [object Object] File: "file:///data/data/org.nativescript.Groceries/files/app/tns_modules/@angular/core/bundles/core.umd.js, line: 12760, column: 20 StackTrace: Frame: function:'DebugAppView

Solution icon of stackoverflow
via Stack Overflow by Koushik Sarkar
, 9 months ago
Calling js method onClick failed [object Object] File: "/data/data/org.nativescript.groceries/files/app/tns_modules/@angular/core/bundles/core.umd.js, line: 9427, column: 20 StackTrace: Frame: function:'DebugAppView._rethrowWithContext', file

Solution icon of github
via GitHub by david-quadpro
, 1 month ago
/com.quadpro.qplusrequest/files/app/tns_modules/@angular/core/bundles/core.umd.js', line: 4394, column: 31 Frame: function:'ZoneDelegate.invoke', file:'file:///data/data/com.quadpro.qplusrequest/files/app/tns_modules/nativescript-angular/zone-js/dist/zone

Solution icon of github
via GitHub by david-quadpro
, 1 month ago
/com.quadpro.qplusrequest/files/app/tns_modules/@angular/core/bundles/core.umd.js', line: 4394, column: 31 Frame: function:'ZoneDelegate.invoke', file:'file:///data/data/com.quadpro.qplusrequest/files/app/tns_modules/nativescript-angular/zone-js/dist/zone

Solution icon of stackoverflow
/tns_modules/nativescript-angular/renderer.js', line: 204, column: 26 Frame: function:'ZoneDelegate.invoke', file:'/data/data/org.nativescript.EatSafe/files/app/tns_modules/zone.js/dist/zone-node.js', line: 290, column: 29 Frame: function

Solution icon of github
via GitHub by Zengratul
, 10 months ago
Calling js method onClick failed [object Object] File: "/data/data/org.nativescript.Test/files/app/tns_modules/@angular/core/bundles/core.umd.js, line: 9464, column: 20 StackTrace: Frame: function:'DebugAppView._rethrowWithContext', file:'/data

Solution icon of github
Calling js method onItemClick failed [object Object] File: "/data/data/org.nativescript.DeliveryApp/files/app/tns_modules/@angular/core/bundles/core.umd.js, line: 9427, column: 20 StackTrace: Frame: function:'DebugAppView._rethrowWithContext

Solution icon of stackoverflow
Calling js method onClick failed [object Object] File: "/data/data/cl.eukalyptusdev.ploc/files/app/tns_modules/@angular/core/bundles/core.umd.js, line: 9478, column: 20 StackTrace: Frame: function:'', file:'/data/data/cl.eukalyptusdev.ploc/files

Solution icon of stackoverflow
Calling js method onClick failed Error: Error in app.component.html:26:35 caused by: self.context.openDrawer is not a function File: "/data/data/org.nativescript.nbapp/files/app/tns_modules/@angular/core/bundles/core.umd.js, line: 9668, column: 20

Solution icon of github
via GitHub by bfv
, 5 months ago
Calling js method onLocationChanged failed [object Object] File: "file:///data/data/io.bfv.sailert/files/app/tns_modules/rxjs/Subscriber.js, line: 227, column: 12 StackTrace: Frame: function:'SafeSubscriber.__tryOrUnsub', file:'file

Stack trace

com.tns.NativeScriptException: Calling js method onClick failed

[object Object]
File: "file:///data/data/org.nativescript.Groceries/files/app/tns_modules/@angular/core/bundles/core.umd.js, line: 12760, column: 20

StackTrace:
        Frame: function:'DebugAppView._rethrowWithContext', file:'file:///data/data/org.nativescript.Groceries/files/app/tns_modules/@angular/core/bundles/core.umd.js', line: 12760, column: 21
        Frame: function:'', file:'file:///data/data/org.nativescript.Groceries/files/app/tns_modules/@angular/core/bundles/core.umd.js', line: 12777, column: 27
        Frame: function:'', file:'file:///data/data/org.nativescript.Groceries/files/app/tns_modulesativescript-angular/renderer.js', line: 213, column: 26
        Frame: function:'ZoneDelegate.invoke', file:'file:///data/data/org.nativescript.Groceries/files/app/tns_modulesativescript-angular/zone-js/dist/zone-nativescript.js', line: 190, column: 28
        Frame: function:'onInvoke', file:'file:///data/data/org.nativescript.Groceries/files/app/tns_modules/@angular/core/bundles/core.umd.js', line: 4391, column: 41
        Frame: function:'ZoneDelegate.invoke', file:'file:///data/data/org.nativescript.Groceries/files/app/tns_modulesativescript-angular/zone-js/dist/zone-nativescript.js', line: 189, column: 34
        Frame: function:'Zone.run', file:'file:///data/data/org.nativescript.Groceries/files/app/tns_modulesativescript-angular/zone-js/dist/zone-nativescript.js', line: 83, column: 43
        Frame: function:'NgZone.run', file:'file:///data/data/org.nativescript.Groceries/files/app/tns_modules/@angular/core/bundles/core.umd.js', line: 4260, column: 66
        Frame: function:'zonedCallback', file:'file:///data/data/org.nativescript.Groceries/files/app/tns_modulesativescript-angular/renderer.js', line: 212, column: 24
        Frame: function:'Observable.notify', file:'file:///data/data/org.nativescript.Groceries/files/app/tns_modules/data/observable/observable.js', line: 149, column: 23
        Frame: function:'Observable._emit', file:'file:///data/data/org.nativescript.Groceries/files/app/tns_modules/data/observable/observable.js', line: 168, column: 18
        Frame: function:'onClick', file:'file:///data/data/org.nativescript.Groceries/files/app/tns_modules/ui/button/button.js', line: 35, column: 32
	at com.tns.Runtime.callJSMethodNative(Native Method)
	at com.tns.Runtime.dispatchCallJSMethodNative(Runtime.java:1197)
	at com.tns.Runtime.callJSMethodImpl(Runtime.java:1061)
	at com.tns.Runtime.callJSMethod(Runtime.java:1047)
	at com.tns.Runtime.callJSMethod(Runtime.java:1028)
	at com.tns.Runtime.callJSMethod(Runtime.java:1018)
	at com.tns.gen.android.view.View_OnClickListener.onClick(android.view.View$OnClickListener.java)
	at android.view.View.performClick(View.java:5198)
	at android.view.View$PerformClick.run(View.java:21147)
	at android.os.Handler.handleCallback(Handler.java:739)
	at android.os.Handler.dispatchMessage(Handler.java:95)
	at android.os.Looper.loop(Looper.java:148)
	at android.app.ActivityThread.main(ActivityThread.java:5417)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 5 months ago