{"action":"closed","issue":{"url":"https://api.github.com/repos/NativeScript/nativescript-angular/issues/1540","repository_url":"https://api.github.com/repos/NativeScript/nativescript-angular","labels_url":"https://api.github.com/repos/NativeScript/nativescript-angular/issues/1540/labels{/name}","comments_url":"https://api.github.com/repos/NativeScript/nativescript-angular/issues/1540/comments","events_url":"https://api.github.com/repos/NativeScript/nativescript-angular/issues/1540/events","html_url":"https://github.com/NativeScript/nativescript-angular/issues/1540","id":366732723,"node_id":"MDU6SXNzdWUzNjY3MzI3MjM=","number":1540,"title":"Can't resolve all parameters for ApplicationModule","user":{"login":"noomieware","id":23049659,"node_id":"MDQ6VXNlcjIzMDQ5NjU5","avatar_url":"https://avatars1.githubusercontent.com/u/23049659?v=4","gravatar_id":"","url":"https://api.github.com/users/noomieware","html_url":"https://github.com/noomieware","followers_url":"https://api.github.com/users/noomieware/followers","following_url":"https://api.github.com/users/noomieware/following{/other_user}","gists_url":"https://api.github.com/users/noomieware/gists{/gist_id}","starred_url":"https://api.github.com/users/noomieware/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/noomieware/subscriptions","organizations_url":"https://api.github.com/users/noomieware/orgs","repos_url":"https://api.github.com/users/noomieware/repos","events_url":"https://api.github.com/users/noomieware/events{/privacy}","received_events_url":"https://api.github.com/users/noomieware/received_events","type":"User","site_admin":false},"labels":[{"id":798721720,"node_id":"MDU6TGFiZWw3OTg3MjE3MjA=","url":"https://api.github.com/repos/NativeScript/nativescript-angular/labels/needs%20more%20info","name":"needs more info","color":"fbca04","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-10-04T10:54:50Z","updated_at":"2018-10-12T08:37:56Z","closed_at":"2018-10-12T08:37:56Z","author_association":"NONE","body":"### Make sure to check the existing issues in this repository \r\n\r\nNone found.\r\n\r\n### If there is no issue for your problem, tell us about it\r\n\r\n\r\n### Which platform(s) does your issue occur on?\r\n- Both \r\n- iOS12 / Android 8.1.0\r\n- emulator\r\n\r\n### Please, provide the following version numbers that your issue occurs with:\r\n\r\n- CLI: $ tns --version -> 4.2.4\r\n- Cross-platform modules: \"tns-core-modules@4.2.1\",\r\n- Runtime(s):     \"tns-ios\": {\r\n      \"version\": \"4.2.0\"\r\n    },\r\n    \"tns-android\": {\r\n      \"version\": \"4.2.0\"\r\n    }\r\n\r\n### Please, tell us how to recreate the issue in as much detail as possible. \r\n\r\nIssue shows up, if I update @angular/* to >6.1.8. No error with 6.1.0 dependencies. \r\n\r\nan npm update installed newer @angular packages, due to having ~6.1.0 in package.json (as it is set by cli). With that in place I got:\r\n\r\n```\r\nSystem.err: java.lang.RuntimeException: Unable to start activity ComponentInfo{org.nativescript.charenjiapp/com.tns.NativeScriptActivity}: com.tns.NativeScriptException:\r\nSystem.err: Calling js method onCreate failed\r\nSystem.err:\r\nSystem.err: Error: Can't resolve all parameters for ApplicationModule: (?).\r\nSystem.err: File: \"file:///data/data/org.nativescript.charenjiapp/files/app/tns_modules/@angular/compiler/bundles/compiler.umd.js, line: 11175, column: 16\r\n```\r\n\r\nI first checked for missing DI imports and circular references, but everything was / is fine here, and worked without any changes before. A downgrade of the @angular packages solved it again.\r\n\r\n### full stacktrace\r\n\r\n```\r\nActivityManager: Launch timeout has expired, giving up wake lock!\r\n10-04 09:23:59.174  7551  7551 E AndroidRuntime:        at com.tns.Runtime.callJSMethodNative(Native Method)\r\n10-04 09:23:59.174  7551  7551 E AndroidRuntime:        at com.tns.Runtime.dispatchCallJSMethodNative(Runtime.java:1116)\r\n10-04 09:23:59.174  7551  7551 E AndroidRuntime:        at com.tns.Runtime.callJSMethodImpl(Runtime.java:996)\r\n10-04 09:23:59.174  7551  7551 E AndroidRuntime:        at com.tns.Runtime.callJSMethod(Runtime.java:983)\r\n10-04 09:23:59.174  7551  7551 E AndroidRuntime:        at com.tns.Runtime.callJSMethod(Runtime.java:967)\r\n10-04 09:23:59.174  7551  7551 E AndroidRuntime:        at com.tns.Runtime.callJSMethod(Runtime.java:959)\r\nSystem.err: java.lang.RuntimeException: Unable to start activity ComponentInfo{org.nativescript.charenjiapp/com.tns.NativeScriptActivity}: com.tns.NativeScriptException:\r\nSystem.err: Calling js method onCreate failed\r\nSystem.err:\r\nSystem.err: Error: Can't resolve all parameters for ApplicationModule: (?).\r\nSystem.err: File: \"file:///data/data/org.nativescript.charenjiapp/files/app/tns_modules/@angular/compiler/bundles/compiler.umd.js, line: 11175, column: 16\r\nSystem.err:\r\nSystem.err: StackTrace:\r\nSystem.err:     Frame: function:'ZoneAwareError', file:'file:///data/data/org.nativescript.charenjiapp/files/app/tns_modules/nativescript-angular/zone-js/dist/zone-nativescript.js', line: 1298, column: 33\r\nSystem.err:     Frame: function:'syntaxError', file:'file:///data/data/org.nativescript.charenjiapp/files/app/tns_modules/@angular/compiler/bundles/compiler.umd.js', line: 1098, column: 21\r\nSystem.err:     Frame: function:'CompileMetadataResolver._getDependenciesMetadata', file:'file:///data/data/org.nativescript.charenjiapp/files/app/tns_modules/@angular/compiler/bundles/compiler.umd.js', line: 10987, column: 39\r\nSystem.err:     Frame: function:'CompileMetadataResolver._getTypeMetadata', file:'file:///data/data/org.nativescript.charenjiapp/files/app/tns_modules/@angular/compiler/bundles/compiler.umd.js', line: 10880, column: 30\r\nSystem.err:     Frame: function:'CompileMetadataResolver.getNgModuleMetadata', file:'file:///data/data/org.nativescript.charenjiapp/files/app/tns_modules/@angular/compiler/bundles/compiler.umd.js', line: 10748, column: 28\r\nSystem.err:     Frame: function:'CompileMetadataResolver.getNgModuleSummary', file:'file:///data/data/org.nativescript.charenjiapp/files/app/tns_modules/@angular/compiler/bundles/compiler.umd.js', line: 10558, column: 39\r\nSystem.err:     Frame: function:'', file:'file:///data/data/org.nativescript.charenjiapp/files/app/tns_modules/@angular/compiler/bundles/compiler.umd.js', line: 10645, column: 59\r\nSystem.err:     Frame: function:'CompileMetadataResolver.getNgModuleMetadata', file:'file:///data/data/org.nativescript.charenjiapp/files/app/tns_modules/@angular/compiler/bundles/compiler.umd.js', line: 10623, column: 53\r\nSystem.err:     Frame: function:'CompileMetadataResolver.getNgModuleSummary', file:'file:///data/data/org.nativescript.charenjiapp/files/app/tns_modules/@angular/compiler/bundles/compiler.umd.js', line: 10558, column: 39\r\nSystem.err:     Frame: function:'', file:'file:///data/data/org.nativescript.charenjiapp/files/app/tns_modules/@angular/compiler/bundles/compiler.umd.js', line: 10645, column: 59\r\nSystem.err:     Frame: function:'CompileMetadataResolver.getNgModuleMetadata', file:'file:///data/data/org.nativescript.charenjiapp/files/app/tns_modules/@angular/compiler/bundles/compiler.umd.js', line: 10623, column: 53\r\nSystem.err:     Frame: function:'JitCompiler._loadModules', file:'file:///data/data/org.nativescript.charenjiapp/files/app/tns_modules/@angular/compiler/bundles/compiler.umd.js', line: 23932, column: 55\r\nSystem.err:     Frame: function:'JitCompiler._compileModuleAndComponents', file:'file:///data/data/org.nativescript.charenjiapp/files/app/tns_modules/@angular/compiler/bundles/compiler.umd.js', line: 23913, column: 40\r\nSystem.err:     Frame: function:'JitCompiler.compileModuleAsync', file:'file:///data/data/org.nativescript.charenjiapp/files/app/tns_modules/@angular/compiler/bundles/compiler.umd.js', line: 23873, column: 41\r\nSystem.err:     Frame: function:'CompilerImpl.compileModuleAsync', file:'file:///data/data/org.nativescript.charenjiapp/files/app/tns_modules/@angular/platform-browser-dynamic/bundles/platform-browser-dynamic.umd.js', line: 202, column: 35\r\nSystem.err:     Frame: function:'PlatformRef.bootstrapModule', file:'file:///data/data/org.nativescript.charenjiapp/files/app/tns_modules/@angular/core/bundles/core.umd.js', line: 4417, column: 29\r\nSystem.err:     Frame: function:'_bootstrapper', file:'file:///data/data/org.nativescript.charenjiapp/files/app/tns_modules/nativescript-angular/platform-common.js', line: 75, column: 66\r\nSystem.err:     Frame: function:'', file:'file:///data/data/org.nativescript.charenjiapp/files/app/tns_modules/nativescript-angular/platform-common.js', line: 128, column: 19\r\nSystem.err:     Frame: function:'Observable.notify', file:'file:///data/data/org.nativescript.charenjiapp/files/app/tns_modules/tns-core-modules/data/observable/observable.js', line: 110, column: 23\r\nSystem.err:     Frame: function:'notifyLaunch', file:'file:///data/data/org.nativescript.charenjiapp/files/app/tns_modules/tns-core-modules/ui/frame/frame.js', line: 884, column: 17\r\nSystem.err:     Frame: function:'ActivityCallbacksImplementation.setActivityContent', file:'file:///data/data/org.nativescript.charenjiapp/files/app/tns_modules/tns-core-modules/ui/frame/frame.js', line: 817, column: 28\r\nSystem.err:     Frame: function:'ActivityCallbacksImplementation.onCreate', file:'file:///data/data/org.nativescript.charenjiapp/files/app/tns_modules/tns-core-modules/ui/frame/frame.js', line: 691, column: 14\r\nSystem.err:     Frame: function:'NativeScriptActivity.onCreate', file:'file:///data/data/org.nativescript.charenjiapp/files/app/tns_modules/tns-core-modules/ui/frame/activity.js', line: 20, column: 25\r\nSystem.err:\r\nSystem.err:     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2778)\r\nSystem.err:     at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2856)\r\nSystem.err:     at android.app.ActivityThread.-wrap11(Unknown Source:0)\r\nSystem.err:     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1589)\r\nSystem.err:     at android.os.Handler.dispatchMessage(Handler.java:106)\r\nSystem.err:     at android.os.Looper.loop(Looper.java:164)\r\nSystem.err:     at android.app.ActivityThread.main(ActivityThread.java:6494)\r\nSystem.err:     at java.lang.reflect.Method.invoke(Native Method)\r\nSystem.err:     at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438)\r\nSystem.err:     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807)\r\nSystem.err: Caused by: com.tns.NativeScriptException:\r\nSystem.err: Calling js method onCreate failed\r\nSystem.err:\r\nSystem.err: Error: Can't resolve all parameters for ApplicationModule: (?).\r\nSystem.err: File: \"file:///data/data/org.nativescript.charenjiapp/files/app/tns_modules/@angular/compiler/bundles/compiler.umd.js, line: 11175, column: 16\r\nSystem.err:\r\nSystem.err: StackTrace:\r\nSystem.err:     Frame: function:'ZoneAwareError', file:'file:///data/data/org.nativescript.charenjiapp/files/app/tns_modules/nativescript-angular/zone-js/dist/zone-nativescript.js', line: 1298, column: 33\r\nSystem.err:     Frame: function:'syntaxError', file:'file:///data/data/org.nativescript.charenjiapp/files/app/tns_modules/@angular/compiler/bundles/compiler.umd.js', line: 1098, column: 21\r\nSystem.err:     Frame: function:'CompileMetadataResolver._getDependenciesMetadata', file:'file:///data/data/org.nativescript.charenjiapp/files/app/tns_modules/@angular/compiler/bundles/compiler.umd.js', line: 10987, column: 39\r\nSystem.err:     Frame: function:'CompileMetadataResolver._getTypeMetadata', file:'file:///data/data/org.nativescript.charenjiapp/files/app/tns_modules/@angular/compiler/bundles/compiler.umd.js', line: 10880, column: 30\r\nSystem.err:     Frame: function:'CompileMetadataResolver.getNgModuleMetadata', file:'file:///data/data/org.nativescript.charenjiapp/files/app/tns_modules/@angular/compiler/bundles/compiler.umd.js', line: 10748, column: 28\r\nSystem.err:     Frame: function:'CompileMetadataResolver.getNgModuleSummary', file:'file:///data/data/org.nativescript.charenjiapp/files/app/tns_modules/@angular/compiler/bundles/compiler.umd.js', line: 10558, column: 39\r\nSystem.err:     Frame: function:'', file:'file:///data/data/org.nativescript.charenjiapp/files/app/tns_modules/@angular/compiler/bundles/compiler.umd.js', line: 10645, column: 59\r\nSystem.err:     Frame: function:'CompileMetadataResolver.getNgModuleMetadata', file:'file:///data/data/org.nativescript.charenjiapp/files/app/tns_modules/@angular/compiler/bundles/compiler.umd.js', line: 10623, column: 53\r\nSystem.err:     Frame: function:'CompileMetadataResolver.getNgModuleSummary', file:'file:///data/data/org.nativescript.charenjiapp/files/app/tns_modules/@angular/compiler/bundles/compiler.umd.js', line: 10558, column: 39\r\nSystem.err:     Frame: function:'', file:'file:///data/data/org.nativescript.charenjiapp/files/app/tns_modules/@angular/compiler/bundles/compiler.umd.js', line: 10645, column: 59\r\nSystem.err:     Frame: function:'CompileMetadataResolver.getNgModuleMetadata', file:'file:///data/data/org.nativescript.charenjiapp/files/app/tns_modules/@angular/compiler/bundles/compiler.umd.js', line: 10623, column: 53\r\nSystem.err:     Frame: function:'JitCompiler._loadModules', file:'file:///data/data/org.nativescript.charenjiapp/files/app/tns_modules/@angular/compiler/bundles/compiler.umd.js', line: 23932, column: 55\r\nSystem.err:     Frame: function:'JitCompiler._compileModuleAndComponents', file:'file:///data/data/org.nativescript.charenjiapp/files/app/tns_modules/@angular/compiler/bundles/compiler.umd.js', line: 23913, column: 40\r\nSystem.err:     Frame: function:'JitCompiler.compileModuleAsync', file:'file:///data/data/org.nativescript.charenjiapp/files/app/tns_modules/@angular/compiler/bundles/compiler.umd.js', line: 23873, column: 41\r\nSystem.err:     Frame: function:'CompilerImpl.compileModuleAsync', file:'file:///data/data/org.nativescript.charenjiapp/files/app/tns_modules/@angular/platform-browser-dynamic/bundles/platform-browser-dynamic.umd.js', line: 202, column: 35\r\nSystem.err:     Frame: function:'PlatformRef.bootstrapModule', file:'file:///data/data/org.nativescript.charenjiapp/files/app/tns_modules/@angular/core/bundles/core.umd.js', line: 4417, column: 29\r\nSystem.err:     Frame: function:'_bootstrapper', file:'file:///data/data/org.nativescript.charenjiapp/files/app/tns_modules/nativescript-angular/platform-common.js', line: 75, column: 66\r\nSystem.err:     Frame: function:'', file:'file:///data/data/org.nativescript.charenjiapp/files/app/tns_modules/nativescript-angular/platform-common.js', line: 128, column: 19\r\nSystem.err:     Frame: function:'Observable.notify', file:'file:///data/data/org.nativescript.charenjiapp/files/app/tns_modules/tns-core-modules/data/observable/observable.js', line: 110, column: 23\r\nSystem.err:     Frame: function:'notifyLaunch', file:'file:///data/data/org.nativescript.charenjiapp/files/app/tns_modules/tns-core-modules/ui/frame/frame.js', line: 884, column: 17\r\nSystem.err:     Frame: function:'ActivityCallbacksImplementation.setActivityContent', file:'file:///data/data/org.nativescript.charenjiapp/files/app/tns_modules/tns-core-modules/ui/frame/frame.js', line: 817, column: 28\r\nSystem.err:     Frame: function:'ActivityCallbacksImplementation.onCreate', file:'file:///data/data/org.nativescript.charenjiapp/files/app/tns_modules/tns-core-modules/ui/frame/frame.js', line: 691, column: 14\r\nSystem.err:     Frame: function:'NativeScriptActivity.onCreate', file:'file:///data/data/org.nativescript.charenjiapp/files/app/tns_modules/tns-core-modules/ui/frame/activity.js', line: 20, column: 25\r\nSystem.err:\r\nSystem.err:     at com.tns.Runtime.callJSMethodNative(Native Method)\r\nSystem.err:     at com.tns.Runtime.dispatchCallJSMethodNative(Runtime.java:1116)\r\nSystem.err:     at com.tns.Runtime.callJSMethodImpl(Runtime.java:996)\r\nSystem.err:     at com.tns.Runtime.callJSMethod(Runtime.java:983)\r\nSystem.err:     at com.tns.Runtime.callJSMethod(Runtime.java:967)\r\nSystem.err:     at com.tns.Runtime.callJSMethod(Runtime.java:959)\r\nSystem.err:     at com.tns.NativeScriptActivity.onCreate(NativeScriptActivity.java:18)\r\nSystem.err:     at android.app.Activity.performCreate(Activity.java:7009)\r\nSystem.err:     at android.app.Activity.performCreate(Activity.java:7000)\r\nSystem.err:     at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1214)\r\nSystem.err:     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2731)\r\nSystem.err:     ... 9 more\r\n```\r\n\r\nI choose nativescript-angular as issue target, as it seems there is some incompatibility between nativescript and angular in that case. If I was wrong, please excuse me. \r\n\r\nThx.\r\n"}}
{"actor":{"display_login":"NickIliev"}}