Calling js method onStart failed
See original GitHub issuePlease, provide the details below:
I tried different things but after updating my project to the latest packages i am getting lots of the errors.
Did you verify this is a real problem by searching the NativeScript Forum and the other open issues in this repo?
Tell us about the problem
I tried different things but after updating my project to the latest packages i am getting lots of the errors.
Which platform(s) does your issue occur on?
Android/
my tns version is 3.4.2. Below is the error message I am getting.
java.lang.RuntimeException: Unable to start activity ComponentInfo{org.nativescript.DemoAPL/com.tns.NativeScriptActivity}: com.tns.NativeScriptException:
System.err: Calling js method onStart failed
System.err:
System.err: Error: Could not resolve most-wickets-list.component.html. Looked for: /data/data/org.nativescript.DemoAPL/files/app/most-wickets-list.component.html.
System.err: File: "file:///data/data/org.nativescript.DemoAPL/files/app/tns_modules/nativescript-angular/resource-loader.js, line: 33, column: 12
System.err:
System.err: StackTrace:
System.err: Frame: function:'ZoneAwareError', file:'file:///data/data/org.nativescript.DemoAPL/files/app/tns_modules/nativescript-angular/zone-js/dist/zone-nativescript.js', line: 994, column: 33
System.err: Frame: function:'FileSystemResourceLoader.resolve', file:'file:///data/data/org.nativescript.DemoAPL/files/app/tns_modules/nativescript-angular/resource-loader.js', line: 33, column: 19
System.err: Frame: function:'FileSystemResourceLoader.get', file:'file:///data/data/org.nativescript.DemoAPL/files/app/tns_modules/nativescript-angular/resource-loader.js', line: 19, column: 33
System.err: Frame: function:'DirectiveNormalizer._fetch', file:'file:///data/data/org.nativescript.DemoAPL/files/app/tns_modules/@angular/compiler/bundles/compiler.umd.js', line: 3186, column: 43
System.err: Frame: function:'DirectiveNormalizer._preParseTemplate', file:'file:///data/data/org.nativescript.DemoAPL/files/app/tns_modules/@angular/compiler/bundles/compiler.umd.js', line: 3241, column: 29
System.err: Frame: function:'DirectiveNormalizer.normalizeTemplate', file:'file:///data/data/org.nativescript.DemoAPL/files/app/tns_modules/@angular/compiler/bundles/compiler.umd.js', line: 3221, column: 36
System.err: Frame: function:'CompileMetadataResolver.loadDirectiveMetadata', file:'file:///data/data/org.nativescript.DemoAPL/files/app/tns_modules/@angular/compiler/bundles/compiler.umd.js', line: 14950, column: 75
System.err: Frame: function:'', file:'file:///data/data/org.nativescript.DemoAPL/files/app/tns_modules/@angular/compiler/bundles/compiler.umd.js', line: 34454, column: 72
System.err: Frame: function:'', file:'file:///data/data/org.nativescript.DemoAPL/files/app/tns_modules/@angular/compiler/bundles/compiler.umd.js', line: 34453, column: 72
System.err: Frame: function:'JitCompiler._loadModules', file:'file:///data/data/org.nativescript.DemoAPL/files/app/tns_modules/@angular/compiler/bundles/compiler.umd.js', line: 34450, column: 75
System.err: Frame: function:'JitCompiler._compileModuleAndComponents', file:'file:///data/data/org.nativescript.DemoAPL/files/app/tns_modules/@angular/compiler/bundles/compiler.umd.js', line: 34408, column: 36
System.err: Frame: function:'JitCompiler.compileModuleAsync', file:'file:///data/data/org.nativescript.DemoAPL/files/app/tns_modules/@angular/compiler/bundles/compiler.umd.js', line: 34302, column: 37
System.err: Frame: function:'CompilerImpl.compileModuleAsync', file:'file:///data/data/org.nativescript.DemoAPL/files/app/tns_modules/@angular/platform-browser-dynamic/bundles/platform-browser-dynamic.umd.js', line: 270, column: 49
System.err: Frame: function:'PlatformRef.bootstrapModule', file:'file:///data/data/org.nativescript.DemoAPL/files/app/tns_modules/@angular/core/bundles/core.umd.js', line: 5601, column: 25
System.err: Frame: function:'_bootstrapper', file:'file:///data/data/org.nativescript.DemoAPL/files/app/tns_modules/nativescript-angular/platform-common.js', line: 71, column: 66
System.err: Frame: function:'', file:'file:///data/data/org.nativescript.DemoAPL/files/app/tns_modules/nativescript-angular/platform-common.js', line: 144, column: 21
System.err: Frame: function:'Observable.notify', file:'file:///data/data/org.nativescript.DemoAPL/files/app/tns_modules/tns-core-modules/data/observable/observable.js', line: 103, column: 23
System.err: Frame: function:'PageBase.onNavigatingTo', file:'file:///data/data/org.nativescript.DemoAPL/files/app/tns_modules/tns-core-modules/ui/page/page-common.js', line: 118, column: 14
System.err: Frame: function:'FrameBase._onNavigatingTo', file:'file:///data/data/org.nativescript.DemoAPL/files/app/tns_modules/tns-core-modules/ui/frame/frame-common.js', line: 357, column: 37
System.err: Frame: function:'FrameBase.performNavigation', file:'file:///data/data/org.nativescript.DemoAPL/files/app/tns_modules/tns-core-modules/ui/frame/frame-common.js', line: 329, column: 14
System.err: Frame: function:'FrameBase._processNextNavigationEntry', file:'file:///data/data/org.nativescript.DemoAPL/files/app/tns_modules/tns-core-modules/ui/frame/frame-common.js', line: 322, column: 22
System.err: Frame: function:'Frame._processNextNavigationEntry', file:'file:///data/data/org.nativescript.DemoAPL/files/app/tns_modules/tns-core-modules/ui/frame/frame.js', line: 86, column: 58
System.err: Frame: function:'FrameBase.onLoaded', file:'file:///data/data/org.nativescript.DemoAPL/files/app/tns_modules/tns-core-modules/ui/frame/frame-common.js', line: 137, column: 14
System.err: Frame: function:'ActivityCallbacksImplementation.onStart', file:'file:///data/data/org.nativescript.DemoAPL/files/app/tns_modules/tns-core-modules/ui/frame/frame.js', line: 640, column: 22
System.err: Frame: function:'NativeScriptActivity.onStart', file:'file:///data/data/org.nativescript.DemoAPL/files/app/tns_modules/tns-core-modules/ui/frame/activity.js', line: 26, column: 25
System.err:
System.err: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3003)
System.err: at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3064)
System.err: at android.app.ActivityThread.-wrap14(ActivityThread.java)
System.err: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1659)
System.err: at android.os.Handler.dispatchMessage(Handler.java:102)
System.err: at android.os.Looper.loop(Looper.java:154)
System.err: at android.app.ActivityThread.main(ActivityThread.java:6823)
System.err: at java.lang.reflect.Method.invoke(Native Method)
System.err: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1563)
System.err: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1451)
System.err: Caused by: com.tns.NativeScriptException:
System.err: Calling js method onStart failed
System.err:
System.err: Error: Could not resolve most-wickets-list.component.html. Looked for: /data/data/org.nativescript.DemoAPL/files/app/most-wickets-list.component.html.
System.err: File: "file:///data/data/org.nativescript.DemoAPL/files/app/tns_modules/nativescript-angular/resource-loader.js, line: 33, column: 12
System.err:
System.err: StackTrace:
System.err: Frame: function:'ZoneAwareError', file:'file:///data/data/org.nativescript.DemoAPL/files/app/tns_modules/nativescript-angular/zone-js/dist/zone-nativescript.js', line: 994, column: 33
System.err: Frame: function:'FileSystemResourceLoader.resolve', file:'file:///data/data/org.nativescript.DemoAPL/files/app/tns_modules/nativescript-angular/resource-loader.js', line: 33, column: 19
System.err: Frame: function:'FileSystemResourceLoader.get', file:'file:///data/data/org.nativescript.DemoAPL/files/app/tns_modules/nativescript-angular/resource-loader.js', line: 19, column: 33
System.err: Frame: function:'DirectiveNormalizer._fetch', file:'file:///data/data/org.nativescript.DemoAPL/files/app/tns_modules/@angular/compiler/bundles/compiler.umd.js', line: 3186, column: 43
System.err: Frame: function:'DirectiveNormalizer._preParseTemplate', file:'file:///data/data/org.nativescript.DemoAPL/files/app/tns_modules/@angular/compiler/bundles/compiler.umd.js', line: 3241, column: 29
System.err: Frame: function:'DirectiveNormalizer.normalizeTemplate', file:'file:///data/data/org.nativescript.DemoAPL/files/app/tns_modules/@angular/compiler/bundles/compiler.umd.js', line: 3221, column: 36
System.err: Frame: function:'CompileMetadataResolver.loadDirectiveMetadata', file:'file:///data/data/org.nativescript.DemoAPL/files/app/tns_modules/@angular/compiler/bundles/compiler.umd.js', line: 14950, column: 75
System.err: Frame: function:'', file:'file:///data/data/org.nativescript.DemoAPL/files/app/tns_modules/@angular/compiler/bundles/compiler.umd.js', line: 34454, column: 72
System.err: Frame: function:'', file:'file:///data/data/org.nativescript.DemoAPL/files/app/tns_modules/@angular/compiler/bundles/compiler.umd.js', line: 34453, column: 72
System.err: Frame: function:'JitCompiler._loadModules', file:'file:///data/data/org.nativescript.DemoAPL/files/app/tns_modules/@angular/compiler/bundles/compiler.umd.js', line: 34450, column: 75
System.err: Frame: function:'JitCompiler._compileModuleAndComponents', file:'file:///data/data/org.nativescript.DemoAPL/files/app/tns_modules/@angular/compiler/bundles/compiler.umd.js', line: 34408, column: 36
System.err: Frame: function:'JitCompiler.compileModuleAsync', file:'file:///data/data/org.nativescript.DemoAPL/files/app/tns_modules/@angular/compiler/bundles/compiler.umd.js', line: 34302, column: 37
System.err: Frame: function:'CompilerImpl.compileModuleAsync', file:'file:///data/data/org.nativescript.DemoAPL/files/app/tns_modules/@angular/platform-browser-dynamic/bundles/platform-browser-dynamic.umd.js', line: 270, column: 49
System.err: Frame: function:'PlatformRef.bootstrapModule', file:'file:///data/data/org.nativescript.DemoAPL/files/app/tns_modules/@angular/core/bundles/core.umd.js', line: 5601, column: 25
System.err: Frame: function:'_bootstrapper', file:'file:///data/data/org.nativescript.DemoAPL/files/app/tns_modules/nativescript-angular/platform-common.js', line: 71, column: 66
System.err: Frame: function:'', file:'file:///data/data/org.nativescript.DemoAPL/files/app/tns_modules/nativescript-angular/platform-common.js', line: 144, column: 21
System.err: Frame: function:'Observable.notify', file:'file:///data/data/org.nativescript.DemoAPL/files/app/tns_modules/tns-core-modules/data/observable/observable.js', line: 103, column: 23
System.err: Frame: function:'PageBase.onNavigatingTo', file:'file:///data/data/org.nativescript.DemoAPL/files/app/tns_modules/tns-core-modules/ui/page/page-common.js', line: 118, column: 14
System.err: Frame: function:'FrameBase._onNavigatingTo', file:'file:///data/data/org.nativescript.DemoAPL/files/app/tns_modules/tns-core-modules/ui/frame/frame-common.js', line: 357, column: 37
System.err: Frame: function:'FrameBase.performNavigation', file:'file:///data/data/org.nativescript.DemoAPL/files/app/tns_modules/tns-core-modules/ui/frame/frame-common.js', line: 329, column: 14
System.err: Frame: function:'FrameBase._processNextNavigationEntry', file:'file:///data/data/org.nativescript.DemoAPL/files/app/tns_modules/tns-core-modules/ui/frame/frame-common.js', line: 322, column: 22
System.err: Frame: function:'Frame._processNextNavigationEntry', file:'file:///data/data/org.nativescript.DemoAPL/files/app/tns_modules/tns-core-modules/ui/frame/frame.js', line: 86, column: 58
System.err: Frame: function:'FrameBase.onLoaded', file:'file:///data/data/org.nativescript.DemoAPL/files/app/tns_modules/tns-core-modules/ui/frame/frame-common.js', line: 137, column: 14
System.err: Frame: function:'ActivityCallbacksImplementation.onStart', file:'file:///data/data/org.nativescript.DemoAPL/files/app/tns_modules/tns-core-modules/ui/frame/frame.js', line: 640, column: 22
System.err: Frame: function:'NativeScriptActivity.onStart', file:'file:///data/data/org.nativescript.DemoAPL/files/app/tns_modules/tns-core-modules/ui/frame/activity.js', line: 26, column: 25
System.err:
System.err: at com.tns.Runtime.callJSMethodNative(Native Method)
System.err: at com.tns.Runtime.dispatchCallJSMethodNative(Runtime.java:1088)
System.err: at com.tns.Runtime.callJSMethodImpl(Runtime.java:970)
System.err: at com.tns.Runtime.callJSMethod(Runtime.java:957)
System.err: at com.tns.Runtime.callJSMethod(Runtime.java:941)
System.err: at com.tns.Runtime.callJSMethod(Runtime.java:933)
System.err: at com.tns.NativeScriptActivity.onStart(NativeScriptActivity.java:38)
System.err: at android.app.Instrumentation.callActivityOnStart(Instrumentation.java:1256)
System.err: at android.app.Activity.performStart(Activity.java:6994)
System.err: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2956)
System.err: ... 9 more
ActivityManager: Process org.nativescript.DemoAPL (pid 28807) has died(136,736)
ActivityManager: cleanUpApplicationRecord -- 28807
Issue Analytics
- State:
- Created 6 years ago
- Reactions:1
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Issue upgrade Nativescript angular to angular 9 - Stack Overflow
System.err: Calling js method onStart failed System.err: TypeError: Right-hand side of 'instanceof' is not an object System.err: System.err: ...
Read more >Pass parameter from onstart attribute to called JS method
I need to call a JS method when form submit begins and tell the JS which form is being submitted.
Read more >Ionic - Marketo Developers
Failure Callback : function to execute if Marketo framework fails to report action. Action Name : action name. Action Data : action data...
Read more >onStart, onComplete, onExit - Event callbacks
If you want to unbind a callback from these events, call the event name again with false, null, or undefined instead of a...
Read more >The index.js file of a plugin - Volumio Documentation
onStart = function() { var self = this; var defer=libQ.defer(); self.startSpopDaemon() .then(function(e) { setTimeout(function () ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Hi @tanmayparmar, Please provide sample project or code snippets, which could be used for reproducing the problem. Also, send us the project package.json file.
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.