Skip to content

Unable to create application com.tns.NativeScriptApplication #3290

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
masrc opened this issue Dec 27, 2017 · 9 comments
Closed

Unable to create application com.tns.NativeScriptApplication #3290

masrc opened this issue Dec 27, 2017 · 9 comments

Comments

@masrc
Copy link

masrc commented Dec 27, 2017

Did you verify this is a real problem by searching Stack Overflow and the other open issues in this repo?

yes, I really try to find out how to fix that, but no luck

Tell us about the problem

when I run tns run android, I got the following error:

"11:57:26 - Compilation complete. Watching for file changes.

System.err: java.lang.RuntimeException: Unable to create application com.tns.NativeScriptApplication: com.tns.NativeScriptException:
System.err: Error calling module function
System.err: Error calling module function
System.err: Error calling module function
System.err: Error calling module function
System.err: Error calling module function
System.err: Error calling module function
System.err: Error calling module function
System.err: Error calling module function
System.err: Error calling module function
System.err: Error calling module function
System.err: Error calling module function
System.err: Error calling module function
System.err: TypeError: document.createElement is not a function
System.err: File: "file:///data/data/org.nativescript.vendasmobile/files/app/tns_modules/rxjs/util/Immediate.js, line: 56, column: 68
System.err: StackTrace:
System.err:     Frame: function:'ImmediateDefinition.canUseReadyStateChange', file:'file:///data/data/org.nativescript.vendasmobile/files/app/tns_modules/rxjs/util/I
mmediate.js', line: 56, column: 69
System.err:     Frame: function:'ImmediateDefinition', file:'file:///data/data/org.nativescript.vendasmobile/files/app/tns_modules/rxjs/util/Immediate.js', line: 30,
 column: 27
System.err:     Frame: function:'', file:'file:///data/data/org.nativescript.vendasmobile/files/app/tns_modules/rxjs/util/Immediate.js', line: 208, column: 21
System.err:     Frame: function:'require', file:'', line: 1, column: 266
System.err:     Frame: function:'', file:'file:///data/data/org.nativescript.vendasmobile/files/app/tns_modules/rxjs/scheduler/AsapAction.js', line: 7, column: 19
System.err:     Frame: function:'require', file:'', line: 1, column: 266
System.err:     Frame: function:'', file:'file:///data/data/org.nativescript.vendasmobile/files/app/tns_modules/rxjs/scheduler/asap.js', line: 2, column: 20
System.err:     Frame: function:'require', file:'', line: 1, column: 266
System.err:     Frame: function:'', file:'file:///data/data/org.nativescript.vendasmobile/files/app/tns_modules/rxjs/observable/SubscribeOnObservable.js', line: 8, c
olumn: 14
System.err:     Frame: function:'require', file:'', line: 1, column: 266
System.err:     Frame: function:'', file:'file:///data/data/org.nativescript.vendasmobile/files/app/tns_modules/rxjs/operators/subscribeOn.js', line: 2, column: 31
System.err:     Frame: function:'require', file:'', line: 1, column: 266
System.err:     Frame: function:'', file:'file:///data/data/org.nativescript.vendasmobile/files/app/tns_modules/rxjs/operator/subscribeOn.js', line: 2, column: 21
System.err:     Frame: function:'require', file:'', line: 1, column: 266
System.err:     Frame: function:'', file:'file:///data/data/org.nativescript.vendasmobile/files/app/tns_modules/rxjs/add/operator/subscribeOn.js', line: 3, column: 2
1
System.err:     Frame: function:'require', file:'', line: 1, column: 266
System.err:     Frame: function:'', file:'file:///data/data/org.nativescript.vendasmobile/files/app/tns_modules/rxjs/Rx.js', line: 121, column: 1
System.err:     Frame: function:'require', file:'', line: 1, column: 266
System.err:     Frame: function:'', file:'file:///data/data/org.nativescript.vendasmobile/files/app/shared/synchronizer/korp.synchronizer-back.service.js', line: 4,
column: 12
System.err:     Frame: function:'require', file:'', line: 1, column: 266
System.err:     Frame: function:'', file:'file:///data/data/org.nativescript.vendasmobile/files/app/shared/shared.module.js', line: 9, column: 40
System.err:     Frame: function:'require', file:'', line: 1, column: 266
System.err:     Frame: function:'', file:'file:///data/data/org.nativescript.vendasmobile/files/app/app.module.js', line: 18, column: 23
System.err:     Frame: function:'require', file:'', line: 1, column: 266
System.err:     Frame: function:'', file:'file:///data/data/org.nativescript.vendasmobile/files/app/main.js', line: 5, column: 20
System.err:     Frame: function:'require', file:'', line: 1, column: 266
System.err: TypeError: document.createElement is not a function
System.err: File: "<unknown>, line: 1, column: 265
System.err: StackTrace:
System.err:     Frame: function:'ImmediateDefinition.canUseReadyStateChange', file:'file:///data/data/org.nativescript.vendasmobile/files/app/tns_modules/rxjs/util/I
mmediate.js', line: 56, column: 69
System.err:     Frame: function:'ImmediateDefinition', file:'file:///data/data/org.nativescript.vendasmobile/files/app/tns_modules/rxjs/util/Immediate.js', line: 30,
 column: 27
System.err:     Frame: function:'', file:'file:///data/data/org.nativescript.vendasmobile/files/app/tns_modules/rxjs/util/Immediate.js', line: 208, column: 21
System.err:     Frame: function:'require', file:'', line: 1, column: 266
System.err:     Frame: function:'', file:'file:///data/data/org.nativescript.vendasmobile/files/app/tns_modules/rxjs/scheduler/AsapAction.js', line: 7, column: 19
System.err:     Frame: function:'require', file:'', line: 1, column: 266
System.err:     Frame: function:'', file:'file:///data/data/org.nativescript.vendasmobile/files/app/tns_modules/rxjs/scheduler/asap.js', line: 2, column: 20
System.err:     Frame: function:'require', file:'', line: 1, column: 266
System.err:     Frame: function:'', file:'file:///data/data/org.nativescript.vendasmobile/files/app/tns_modules/rxjs/observable/SubscribeOnObservable.js', line: 8, c
olumn: 14
System.err:     Frame: function:'require', file:'', line: 1, column: 266
System.err:     Frame: function:'', file:'file:///data/data/org.nativescript.vendasmobile/files/app/tns_modules/rxjs/operators/subscribeOn.js', line: 2, column: 31
System.err:     Frame: function:'require', file:'', line: 1, column: 266
System.err:     Frame: function:'', file:'file:///data/data/org.nativescript.vendasmobile/files/app/tns_modules/rxjs/operator/subscribeOn.js', line: 2, column: 21
System.err:     Frame: function:'require', file:'', line: 1, column: 266
System.err:     Frame: function:'', file:'file:///data/data/org.nativescript.vendasmobile/files/app/tns_modules/rxjs/add/operator/subscribeOn.js', line: 3, column: 2
1
System.err:     Frame: function:'require', file:'', line: 1, column: 266
System.err:     Frame: function:'', file:'file:///data/data/org.nativescript.vendasmobile/files/app/tns_modules/rxjs/Rx.js', line: 121, column: 1
System.err:     Frame: function:'require', file:'', line: 1, column: 266
System.err:     Frame: function:'', file:'file:///data/data/org.nativescript.vendasmobile/files/app/shared/synchronizer/korp.synchronizer-back.service.js', line: 4,
column: 12
System.err:     Frame: function:'require', file:'', line: 1, column: 266
System.err:     Frame: function:'', file:'file:///data/data/org.nativescript.vendasmobile/files/app/shared/shared.module.js', line: 9, column: 40
System.err:     Frame: function:'require', file:'', line: 1, column: 266
System.err:     Frame: function:'', file:'file:///data/data/org.nativescript.vendasmobile/files/app/app.module.js', line: 18, column: 23
System.err:     Frame: function:'require', file:'', line: 1, column: 266
System.err:     Frame: function:'', file:'file:///data/data/org.nativescript.vendasmobile/files/app/main.js', line: 5, column: 20
System.err:     Frame: function:'require', file:'', line: 1, column: 266
System.err: TypeError: document.createElement is not a function
System.err: File: "<unknown>, line: 1, column: 265
System.err: StackTrace:
System.err:     Frame: function:'ImmediateDefinition.canUseReadyStateChange', file:'file:///data/data/org.nativescript.vendasmobile/files/app/tns_modules/rxjs/util/I
mmediate.js', line: 56, column: 69
System.err:     Frame: function:'ImmediateDefinition', file:'file:///data/data/org.nativescript.vendasmobile/files/app/tns_modules/rxjs/util/Immediate.js', line: 30,
 column: 27
System.err:     Frame: function:'', file:'file:///data/data/org.nativescript.vendasmobile/files/app/tns_modules/rxjs/util/Immediate.js', line: 208, column: 21
System.err:     Frame: function:'require', file:'', line: 1, column: 266
System.err:     Frame: function:'', file:'file:///data/data/org.nativescript.vendasmobile/files/app/tns_modules/rxjs/scheduler/AsapAction.js', line: 7, column: 19
System.err:     Frame: function:'require', file:'', line: 1, column: 266
System.err:     Frame: function:'', file:'file:///data/data/org.nativescript.vendasmobile/files/app/tns_modules/rxjs/scheduler/asap.js', line: 2, column: 20
System.err:     Frame: function:'require', file:'', line: 1, column: 266
System.err:     Frame: function:'', file:'file:///data/data/org.nativescript.vendasmobile/files/app/tns_modules/rxjs/observable/SubscribeOnObservable.js', line: 8, c
olumn: 14
System.err:     Frame: function:'require', file:'', line: 1, column: 266
System.err:     Frame: function:'', file:'file:///data/data/org.nativescript.vendasmobile/files/app/tns_modules/rxjs/operators/subscribeOn.js', line: 2, column: 31
System.err:     Frame: function:'require', file:'', line: 1, column: 266
System.err:     Frame: function:'', file:'file:///data/data/org.nativescript.vendasmobile/files/app/tns_modules/rxjs/operator/subscribeOn.js', line: 2, column: 21
System.err:     Frame: function:'require', file:'', line: 1, column: 266
System.err:     Frame: function:'', file:'file:///data/data/org.nativescript.vendasmobile/files/app/tns_modules/rxjs/add/operator/subscribeOn.js', line: 3, column: 2
1
System.err:     Frame: function:'require', file:'', line: 1, column: 266
System.err:     Frame: function:'', file:'file:///data/data/org.nativescript.vendasmobile/files/app/tns_modules/rxjs/Rx.js', line: 121, column: 1
System.err:     Frame: function:'require', file:'', line: 1, column: 266
System.err:     Frame: function:'', file:'file:///data/data/org.nativescript.vendasmobile/files/app/shared/synchronizer/korp.synchronizer-back.service.js', line: 4,
column: 12
System.err:     Frame: function:'require', file:'', line: 1, column: 266
System.err:     Frame: function:'', file:'file:///data/data/org.nativescript.vendasmobile/files/app/shared/shared.module.js', line: 9, column: 40
System.err:     Frame: function:'require', file:'', line: 1, column: 266
System.err:     Frame: function:'', file:'file:///data/data/org.nativescript.vendasmobile/files/app/app.module.js', line: 18, column: 23
System.err:     Frame: function:'require', file:'', line: 1, column: 266
System.err:     Frame: function:'', file:'file:///data/data/org.nativescript.vendasmobile/files/app/main.js', line: 5, column: 20
System.err:     Frame: function:'require', file:'', line: 1, column: 266
System.err: TypeError: document.createElement is not a function
System.err: File: "<unknown>, line: 1, column: 265
System.err: StackTrace:
System.err:     Frame: function:'ImmediateDefinition.canUseReadyStateChange', file:'file:///data/data/org.nativescript.vendasmobile/files/app/tns_modules/rxjs/util/I
mmediate.js', line: 56, column: 69
System.err:     Frame: function:'ImmediateDefinition', file:'file:///data/data/org.nativescript.vendasmobile/files/app/tns_modules/rxjs/util/Immediate.js', line: 30,
 column: 27
System.err:     Frame: function:'', file:'file:///data/data/org.nativescript.vendasmobile/files/app/tns_modules/rxjs/util/Immediate.js', line: 208, column: 21
System.err:     Frame: function:'require', file:'', line: 1, column: 266
System.err:     Frame: function:'', file:'file:///data/data/org.nativescript.vendasmobile/files/app/tns_modules/rxjs/scheduler/AsapAction.js', line: 7, column: 19
System.err:     Frame: function:'require', file:'', line: 1, column: 266
System.err:     Frame: function:'', file:'file:///data/data/org.nativescript.vendasmobile/files/app/tns_modules/rxjs/scheduler/asap.js', line: 2, column: 20
System.err:     Frame: function:'require', file:'', line: 1, column: 266
System.err:     Frame: function:'', file:'file:///data/data/org.nativescript.vendasmobile/files/app/tns_modules/rxjs/observable/SubscribeOnObservable.js', line: 8, c
olumn: 14
System.err:     Frame: function:'require', file:'', line: 1, column: 266
System.err:     Frame: function:'', file:'file:///data/data/org.nativescript.vendasmobile/files/app/tns_modules/rxjs/operators/subscribeOn.js', line: 2, column: 31
System.err:     Frame: function:'require', file:'', line: 1, column: 266
System.err:     Frame: function:'', file:'file:///data/data/org.nativescript.vendasmobile/files/app/tns_modules/rxjs/operator/subscribeOn.js', line: 2, column: 21
System.err:     Frame: function:'require', file:'', line: 1, column: 266
System.err:     Frame: function:'', file:'file:///data/data/org.nativescript.vendasmobile/files/app/tns_modules/rxjs/add/operator/subscribeOn.js', line: 3, column: 2
1
System.err:     Frame: function:'require', file:'', line: 1, column: 266
System.err:     Frame: function:'', file:'file:///data/data/org.nativescript.vendasmobile/files/app/tns_modules/rxjs/Rx.js', line: 121, column: 1
System.err:     Frame: function:'require', file:'', line: 1, column: 266
System.err:     Frame: function:'', file:'file:///data/data/org.nativescript.vendasmobile/files/app/shared/synchronizer/korp.synchronizer-back.service.js', line: 4,
column: 12
System.err:     Frame: function:'require', file:'', line: 1, column: 266
System.err:     Frame: function:'', file:'file:///data/data/org.nativescript.vendasmobile/files/app/shared/shared.module.js', line: 9, column: 40
System.err:     Frame: function:'require', file:'', line: 1, column: 266
System.err:     Frame: function:'', file:'file:///data/data/org.nativescript.vendasmobile/files/app/app.module.js', line: 18, column: 23
System.err:     Frame: function:'require', file:'', line: 1, column: 266
System.err:     Frame: function:'', file:'file:///data/data/org.nativescript.vendasmobile/files/app/main.js', line: 5, column: 20
System.err:     Frame: function:'require', file:'', line: 1, column: 266
System.err: TypeError: document.createElement is not a function
System.err: File: "<unknown>, line: 1, column: 265
System.err: StackTrace:
System.err:     Frame: function:'ImmediateDefinition.canUseReadyStateChange', file:'file:///data/data/org.nativescript.vendasmobile/files/app/tns_modules/rxjs/util/I
mmediate.js', line: 56, column: 69
System.err:     Frame: function:'ImmediateDefinition', file:'file:///data/data/org.nativescript.vendasmobile/files/app/tns_modules/rxjs/util/Immediate.js', line: 30,
 column: 27
System.err:     Frame: function:'', file:'file:///data/data/org.nativescript.vendasmobile/files/app/tns_modules/rxjs/util/Immediate.js', line: 208, column: 21
System.err:     Frame: function:'require', file:'', line: 1, column: 266
System.err:     Frame: function:'', file:'file:///data/data/org.nativescript.vendasmobile/files/app/tns_modules/rxjs/scheduler/AsapAction.js', line: 7, column: 19
System.err:     Frame: function:'require', file:'', line: 1, column: 266
System.err:     Frame: function:'', file:'file:///data/data/org.nativescript.vendasmobile/files/app/tns_modules/rxjs/scheduler/asap.js', line: 2, column: 20
System.err:     Frame: function:'require', file:'', line: 1, column: 266
System.err:     Frame: function:'', file:'file:///data/data/org.nativescript.vendasmobile/files/app/tns_modules/rxjs/observable/SubscribeOnObservable.js', line: 8, c
olumn: 14
System.err:     Frame: function:'require', file:'', line: 1, column: 266
System.err:     Frame: function:'', file:'file:///data/data/org.nativescript.vendasmobile/files/app/tns_modules/rxjs/operators/subscribeOn.js', line: 2, column: 31
System.err:     Frame: function:'require', file:'', line: 1, column: 266
System.err:     Frame: function:'', file:'file:///data/data/org.nativescript.vendasmobile/files/app/tns_modules/rxjs/operator/subscribeOn.js', line: 2, column: 21
System.err:     Frame: function:'require', file:'', line: 1, column: 266
System.err:     Frame: function:'', file:'file:///data/data/org.nativescript.vendasmobile/files/app/tns_modules/rxjs/add/operator/subscribeOn.js', line: 3, column: 2
1
System.err:     Frame: function:'require', file:'', line: 1, column: 266
System.err:     Frame: function:'', file:'file:///data/data/org.nativescript.vendasmobile/files/app/tns_modules/rxjs/Rx.js', line: 121, column: 1
System.err:     Frame: function:'require', file:'', line: 1, column: 266
System.err:     Frame: function:'', file:'file:///data/data/org.nativescript.vendasmobile/files/app/shared/synchronizer/korp.synchronizer-back.service.js', line: 4,
column: 12
System.err:     Frame: function:'require', file:'', line: 1, column: 266
System.err:     Frame: function:'', file:'file:///data/data/org.nativescript.vendasmobile/files/app/shared/shared.module.js', line: 9, column: 40
System.err:     Frame: function:'require', file:'', line: 1, column: 266
System.err:     Frame: function:'', file:'file:///data/data/org.nativescript.vendasmobile/files/app/app.module.js', line: 18, column: 23
System.err:     Frame: function:'require', file:'', line: 1, column: 266
System.err:     Frame: function:'', file:'file:///data/data/org.nativescript.vendasmobile/files/app/main.js', line: 5, column: 20
System.err:     Frame: function:'require', file:'', line: 1, column: 266
System.err: TypeError: document.createElement is not a function
System.err: File: "<unknown>, line: 1, column: 265
System.err: StackTrace:
System.err:     Frame: function:'ImmediateDefinition.canUseReadyStateChange', file:'file:///data/data/org.nativescript.vendasmobile/files/app/tns_modules/rxjs/util/I
mmediate.js', line: 56, column: 69
System.err:     Frame: function:'ImmediateDefinition', file:'file:///data/data/org.nativescript.vendasmobile/files/app/tns_modules/rxjs/util/Immediate.js', line: 30,
 column: 27
System.err:     Frame: function:'', file:'file:///data/data/org.nativescript.vendasmobile/files/app/tns_modules/rxjs/util/Immediate.js', line: 208, column: 21
System.err:     Frame: function:'require', file:'', line: 1, column: 266
System.err:     Frame: function:'', file:'file:///data/data/org.nativescript.vendasmobile/files/app/tns_modules/rxjs/scheduler/AsapAction.js', line: 7, column: 19
System.err:     Frame: function:'require', file:'', line: 1, column: 266
System.err:     Frame: function:'', file:'file:///data/data/org.nativescript.vendasmobile/files/app/tns_modules/rxjs/scheduler/asap.js', line: 2, column: 20
System.err:     Frame: function:'require', file:'', line: 1, column: 266
System.err:     Frame: function:'', file:'file:///data/data/org.nativescript.vendasmobile/files/app/tns_modules/rxjs/observable/SubscribeOnObservable.js', line: 8, c
olumn: 14
System.err:     Frame: function:'require', file:'', line: 1, column: 266
System.err:     Frame: function:'', file:'file:///data/data/org.nativescript.vendasmobile/files/app/tns_modules/rxjs/operators/subscribeOn.js', line: 2, column: 31
System.err:     Frame: function:'require', file:'', line: 1, column: 266
System.err:     Frame: function:'', file:'file:///data/data/org.nativescript.vendasmobile/files/app/tns_modules/rxjs/operator/subscribeOn.js', line: 2, column: 21
System.err:     Frame: function:'require', file:'', line: 1, column: 266
System.err:     Frame: function:'', file:'file:///data/data/org.nativescript.vendasmobile/files/app/tns_modules/rxjs/add/operator/subscribeOn.js', line: 3, column: 2
1
System.err:     Frame: function:'require', file:'', line: 1, column: 266
System.err:     Frame: function:'', file:'file:///data/data/org.nativescript.vendasmobile/files/app/tns_modules/rxjs/Rx.js', line: 121, column: 1
System.err:     Frame: function:'require', file:'', line: 1, column: 266
System.err:     Frame: function:'', file:'file:///data/data/org.nativescript.vendasmobile/files/app/shared/synchronizer/korp.synchronizer-back.service.js', line: 4,
column: 12
System.err:     Frame: function:'require', file:'', line: 1, column: 266
System.err:     Frame: function:'', file:'file:///data/data/org.nativescript.vendasmobile/files/app/shared/shared.module.js', line: 9, column: 40
System.err:     Frame: function:'require', file:'', line: 1, column: 266
System.err:     Frame: function:'', file:'file:///data/data/org.nativescript.vendasmobile/files/app/app.module.js', line: 18, column: 23
System.err:     Frame: function:'require', file:'', line: 1, column: 266
System.err:     Frame: function:'', file:'file:///data/data/org.nativescript.vendasmobile/files/app/main.js', line: 5, column: 20
System.err:     Frame: function:'require', file:'', line: 1, column: 266
System.err: TypeError: document.createElement is not a function
System.err: File: "<unknown>, line: 1, column: 265
System.err: StackTrace:
System.err:     Frame: function:'ImmediateDefinition.canUseReadyStateChange', file:'file:///data/data/org.nativescript.vendasmobile/files/app/tns_modules/rxjs/util/I
mmediate.js', line: 56, column: 69
System.err:     Frame: function:'ImmediateDefinition', file:'file:///data/data/org.nativescript.vendasmobile/files/app/tns_modules/rxjs/util/Immediate.js', line: 30,
 column: 27
System.err:     Frame: function:'', file:'file:///data/data/org.nativescript.vendasmobile/files/app/tns_modules/rxjs/util/Immediate.js', line: 208, column: 21
System.err:     Frame: function:'require', file:'', line: 1, column: 266
System.err:     Frame: function:'', file:'file:///data/data/org.nativescript.vendasmobile/files/app/tns_modules/rxjs/scheduler/AsapAction.js', line: 7, column: 19
System.err:     Frame: function:'require', file:'', line: 1, column: 266
System.err:     Frame: function:'', file:'file:///data/data/org.nativescript.vendasmobile/files/app/tns_modules/rxjs/scheduler/asap.js', line: 2, column: 20
System.err:     Frame: function:'require', file:'', line: 1, column: 266
System.err:     Frame: function:'', file:'file:///data/data/org.nativescript.vendasmobile/files/app/tns_modules/rxjs/observable/SubscribeOnObservable.js', line: 8, c
olumn: 14
System.err:     Frame: function:'require', file:'', line: 1, column: 266
System.err:     Frame: function:'', file:'file:///data/data/org.nativescript.vendasmobile/files/app/tns_modules/rxjs/operators/subscribeOn.js', line: 2, column: 31
System.err:     Frame: function:'require', file:'', line: 1, column: 266
System.err:     Frame: function:'', file:'file:///data/data/org.nativescript.vendasmobile/files/app/tns_modules/rxjs/operator/subscribeOn.js', line: 2, column: 21
System.err:     Frame: function:'require', file:'', line: 1, column: 266
System.err:     Frame: function:'', file:'file:///data/data/org.nativescript.vendasmobile/files/app/tns_modules/rxjs/add/operator/subscribeOn.js', line: 3, column: 2
1
System.err:     Frame: function:'require', file:'', line: 1, column: 266
System.err:     Frame: function:'', file:'file:///data/data/org.nativescript.vendasmobile/files/app/tns_modules/rxjs/Rx.js', line: 121, column: 1
System.err:     Frame: function:'require', file:'', line: 1, column: 266
System.err:     Frame: function:'', file:'file:///data/data/org.nativescript.vendasmobile/files/app/shared/synchronizer/korp.synchronizer-back.service.js', line: 4,
column: 12
System.err:     Frame: function:'require', file:'', line: 1, column: 266
System.err:     Frame: function:'', file:'file:///data/data/org.nativescript.vendasmobile/files/app/shared/shared.module.js', line: 9, column: 40
System.err:     Frame: function:'require', file:'', line: 1, column: 266
System.err:     Frame: function:'', file:'file:///data/data/org.nativescript.vendasmobile/files/app/app.module.js', line: 18, column: 23
System.err:     Frame: function:'require', file:'', line: 1, column: 266
System.err:     Frame: function:'', file:'file:///data/data/org.nativescript.vendasmobile/files/app/main.js', line: 5, column: 20
System.err:     Frame: function:'require', file:'', line: 1, column: 266
System.err: TypeError: document.createElement is not a function
System.err: File: "<unknown>, line: 1, column: 265
System.err: StackTrace:
System.err:     Frame: function:'ImmediateDefinition.canUseReadyStateChange', file:'file:///data/data/org.nativescript.vendasmobile/files/app/tns_modules/rxjs/util/I
mmediate.js', line: 56, column: 69
System.err:     Frame: function:'ImmediateDefinition', file:'file:///data/data/org.nativescript.vendasmobile/files/app/tns_modules/rxjs/util/Immediate.js', line: 30,
 column: 27
System.err:     Frame: function:'', file:'file:///data/data/org.nativescript.vendasmobile/files/app/tns_modules/rxjs/util/Immediate.js', line: 208, column: 21
System.err:     Frame: function:'require', file:'', line: 1, column: 266
System.err:     Frame: function:'', file:'file:///data/data/org.nativescript.vendasmobile/files/app/tns_modules/rxjs/scheduler/AsapAction.js', line: 7, column: 19
System.err:     Frame: function:'require', file:'', line: 1, column: 266
System.err:     Frame: function:'', file:'file:///data/data/org.nativescript.vendasmobile/files/app/tns_modules/rxjs/scheduler/asap.js', line: 2, column: 20
System.err:     Frame: function:'require', file:'', line: 1, column: 266
System.err:     Frame: function:'', file:'file:///data/data/org.nativescript.vendasmobile/files/app/tns_modules/rxjs/observable/SubscribeOnObservable.js', line: 8, c
olumn: 14
System.err:     Frame: function:'require', file:'', line: 1, column: 266
System.err:     Frame: function:'', file:'file:///data/data/org.nativescript.vendasmobile/files/app/tns_modules/rxjs/operators/subscribeOn.js', line: 2, column: 31
System.err:     Frame: function:'require', file:'', line: 1, column: 266
System.err:     Frame: function:'', file:'file:///data/data/org.nativescript.vendasmobile/files/app/tns_modules/rxjs/operator/subscribeOn.js', line: 2, column: 21
System.err:     Frame: function:'require', file:'', line: 1, column: 266
System.err:     Frame: function:'', file:'file:///data/data/org.nativescript.vendasmobile/files/app/tns_modules/rxjs/add/operator/subscribeOn.js', line: 3, column: 2
1
System.err:     Frame: function:'require', file:'', line: 1, column: 266
System.err:     Frame: function:'', file:'file:///data/data/org.nativescript.vendasmobile/files/app/tns_modules/rxjs/Rx.js', line: 121, column: 1
System.err:     Frame: function:'require', file:'', line: 1, column: 266
System.err:     Frame: function:'', file:'file:///data/data/org.nativescript.vendasmobile/files/app/shared/synchronizer/korp.synchronizer-back.service.js', line: 4,
column: 12
System.err:     Frame: function:'require', file:'', line: 1, column: 266
System.err:     Frame: function:'', file:'file:///data/data/org.nativescript.vendasmobile/files/app/shared/shared.module.js', line: 9, column: 40
System.err:     Frame: function:'require', file:'', line: 1, column: 266
System.err:     Frame: function:'', file:'file:///data/data/org.nativescript.vendasmobile/files/app/app.module.js', line: 18, column: 23
System.err:     Frame: function:'require', file:'', line: 1, column: 266
System.err:     Frame: function:'', file:'file:///data/data/org.nativescript.vendasmobile/files/app/main.js', line: 5, column: 20
System.err:     Frame: function:'require', file:'', line: 1, column: 266
System.err: TypeError: document.createElement is not a function
System.err: File: "<unknown>, line: 1, column: 265
System.err: StackTrace:
System.err:     Frame: function:'ImmediateDefinition.canUseReadyStateChange', file:'file:///data/data/org.nativescript.vendasmobile/files/app/tns_modules/rxjs/util/I
mmediate.js', line: 56, column: 69
System.err:     Frame: function:'ImmediateDefinition', file:'file:///data/data/org.nativescript.vendasmobile/files/app/tns_modules/rxjs/util/Immediate.js', line: 30,
 column: 27
System.err:     Frame: function:'', file:'file:///data/data/org.nativescript.vendasmobile/files/app/tns_modules/rxjs/util/Immediate.js', line: 208, column: 21
System.err:     Frame: function:'require', file:'', line: 1, column: 266
System.err:     Frame: function:'', file:'file:///data/data/org.nativescript.vendasmobile/files/app/tns_modules/rxjs/scheduler/AsapAction.js', line: 7, column: 19
System.err:     Frame: function:'require', file:'', line: 1, column: 266
System.err:     Frame: function:'', file:'file:///data/data/org.nativescript.vendasmobile/files/app/tns_modules/rxjs/scheduler/asap.js', line: 2, column: 20
System.err:     Frame: function:'require', file:'', line: 1, column: 266
System.err:     Frame: function:'', file:'file:///data/data/org.nativescript.vendasmobile/files/app/tns_modules/rxjs/observable/SubscribeOnObservable.js', line: 8, c
olumn: 14
System.err:     Frame: function:'require', file:'', line: 1, column: 266
System.err:     Frame: function:'', file:'file:///data/data/org.nativescript.vendasmobile/files/app/tns_modules/rxjs/operators/subscribeOn.js', line: 2, column: 31
System.err:     Frame: function:'require', file:'', line: 1, column: 266
System.err:     Frame: function:'', file:'file:///data/data/org.nativescript.vendasmobile/files/app/tns_modules/rxjs/operator/subscribeOn.js', line: 2, column: 21
System.err:     Frame: function:'require', file:'', line: 1, column: 266
System.err:     Frame: function:'', file:'file:///data/data/org.nativescript.vendasmobile/files/app/tns_modules/rxjs/add/operator/subscribeOn.js', line: 3, column: 2
1
System.err:     Frame: function:'require', file:'', line: 1, column: 266
System.err:     Frame: function:'', file:'file:///data/data/org.nativescript.vendasmobile/files/app/tns_modules/rxjs/Rx.js', line: 121, column: 1
System.err:     Frame: function:'require', file:'', line: 1, column: 266
System.err:     Frame: function:'', file:'file:///data/data/org.nativescript.vendasmobile/files/app/shared/synchronizer/korp.synchronizer-back.service.js', line: 4,
column: 12
System.err:     Frame: function:'require', file:'', line: 1, column: 266
System.err:     Frame: function:'', file:'file:///data/data/org.nativescript.vendasmobile/files/app/app.module.js', line: 18, column: 23
System.err:     Frame: function:'', file:'file:///data/data/org.nativescript.vendasmobile/files/app/tns_modules/rxjs/util/Immediate.js', line: 208, column: 21
System.err:     Frame: function:'', file:'file:///data/data/org.nativescript.vendasmobile/files/app/tns_modules/rxjs/add/operator/subscribeOn.js', line: 3, column: 2
1
System.err:     Frame: function:'require', file:'', line: 1, column: 266
System.err:     Frame: function:'require', file:'', line: 1, column: 266
System.err:     Frame: function:'', file:'file:///data/data/org.nativescript.vendasmobile/files/app/tns_modules/rxjs/scheduler/AsapAction.js', line: 7, column: 19
System.err:     Frame: function:'require', file:'', line: 1, column: 266
System.err: TypeError: document.createElement is not a function
System.err:     Frame: function:'', file:'file:///data/data/org.nativescript.vendasmobile/files/app/tns_modules/rxjs/observable/SubscribeOnObservable.js', line: 8, c
olumn: 14
System.err:     Frame: function:'', file:'file:///data/data/org.nativescript.vendasmobile/files/app/app.module.js', line: 18, column: 23
System.err:     at android.os.Looper.loop(Looper.java:135)
System.err: Caused by: com.tns.NativeScriptException:
System.err: Error calling module function
System.err:     Frame: function:'ImmediateDefinition.canUseReadyStateChange', file:'file:///data/data/org.nativescript.vendasmobile/files/app/tns_modules/rxjs/util/I
mmediate.js', line: 56, column: 69
System.err:     Frame: function:'', file:'file:///data/data/org.nativescript.vendasmobile/files/app/tns_modules/rxjs/operator/subscribeOn.js', line: 2, column: 21
System.err:     Frame: function:'require', file:'', line: 1, column: 266
System.err:     Frame: function:'require', file:'', line: 1, column: 266
System.err:     Frame: function:'', file:'file:///data/data/org.nativescript.vendasmobile/files/app/tns_modules/rxjs/Rx.js', line: 121, column: 1
System.err: File: "<unknown>, line: 1, column: 265
System.err:     Frame: function:'require', file:'', line: 1, column: 266
System.err:     Frame: function:'require', file:'', line: 1, column: 266
System.err:     Frame: function:'ImmediateDefinition', file:'file:///data/data/org.nativescript.vendasmobile/files/app/tns_modules/rxjs/util/Immediate.js', line: 30,
 column: 27
System.err:     Frame: function:'', file:'file:///data/data/org.nativescript.vendasmobile/files/app/tns_modules/rxjs/operator/subscribeOn.js', line: 2, column: 21
System.err:     Frame: function:'', file:'file:///data/data/org.nativescript.vendasmobile/files/app/app.module.js', line: 18, column: 23
System.err:     Frame: function:'require', file:'', line: 1, column: 266
System.err:     Frame: function:'require', file:'', line: 1, column: 266
System.err:     Frame: function:'require', file:'', line: 1, column: 266
System.err:     Frame: function:'require', file:'', line: 1, column: 266
System.err:     Frame: function:'require', file:'', line: 1, column: 266
System.err:     Frame: function:'', file:'file:///data/data/org.nativescript.vendasmobile/files/app/tns_modules/rxjs/operators/subscribeOn.js', line: 2, column: 31
System.err:     Frame: function:'', file:'file:///data/data/org.nativescript.vendasmobile/files/app/app.module.js', line: 18, column: 23
System.err:     Frame: function:'require', file:'', line: 1, column: 266
System.err:     Frame: function:'', file:'file:///data/data/org.nativescript.vendasmobile/files/app/tns_modules/rxjs/operator/subscribeOn.js', line: 2, column: 21
System.err:     Frame: function:'require', file:'', line: 1, column: 266
System.err:     Frame: function:'', file:'file:///data/data/org.nativescript.vendasmobile/files/app/tns_modules/rxjs/add/operator/subscribeOn.js', line: 3, column: 2
1
System.err:     Frame: function:'require', file:'', line: 1, column: 266
System.err:     Frame: function:'', file:'file:///data/data/org.nativescript.vendasmobile/files/app/shared/synchronizer/korp.synchronizer-back.service.js', line: 4,
column: 12
System.err: File: "<unknown>, line: 1, column: 265
System.err: StackTrace:
System.err:     Frame: function:'ImmediateDefinition', file:'file:///data/data/org.nativescript.vendasmobile/files/app/tns_modules/rxjs/util/Immediate.js', line: 30,
 column: 27
System.err:     Frame: function:'', file:'file:///data/data/org.nativescript.vendasmobile/files/app/tns_modules/rxjs/util/Immediate.js', line: 208, column: 21
System.err:     Frame: function:'require', file:'', line: 1, column: 266
System.err:     Frame: function:'', file:'file:///data/data/org.nativescript.vendasmobile/files/app/tns_modules/rxjs/scheduler/AsapAction.js', line: 7, column: 19
System.err:     Frame: function:'require', file:'', line: 1, column: 266
System.err:     Frame: function:'', file:'file:///data/data/org.nativescript.vendasmobile/files/app/tns_modules/rxjs/scheduler/asap.js', line: 2, column: 20
System.err:     Frame: function:'require', file:'', line: 1, column: 266
System.err:     Frame: function:'', file:'file:///data/data/org.nativescript.vendasmobile/files/app/tns_modules/rxjs/observable/SubscribeOnObservable.js', line: 8, c
olumn: 14
System.err:     Frame: function:'require', file:'', line: 1, column: 266
System.err:     Frame: function:'', file:'file:///data/data/org.nativescript.vendasmobile/files/app/tns_modules/rxjs/operators/subscribeOn.js', line: 2, column: 31
System.err:     Frame: function:'require', file:'', line: 1, column: 266
System.err:     Frame: function:'require', file:'', line: 1, column: 266
System.err:     Frame: function:'require', file:'', line: 1, column: 266
System.err: StackTrace:
System.err:     Frame: function:'', file:'file:///data/data/org.nativescript.vendasmobile/files/app/tns_modules/rxjs/scheduler/AsapAction.js', line: 7, column: 19
System.err:     Frame: function:'require', file:'', line: 1, column: 266
System.err:     Frame: function:'', file:'file:///data/data/org.nativescript.vendasmobile/files/app/tns_modules/rxjs/observable/SubscribeOnObservable.js', line: 8, c
olumn: 14
System.err:     Frame: function:'require', file:'', line: 1, column: 266
System.err:     Frame: function:'', file:'file:///data/data/org.nativescript.vendasmobile/files/app/tns_modules/rxjs/operators/subscribeOn.js', line: 2, column: 31
System.err:     Frame: function:'require', file:'', line: 1, column: 266
System.err:     Frame: function:'', file:'file:///data/data/org.nativescript.vendasmobile/files/app/shared/shared.module.js', line: 9, column: 40
System.err:     Frame: function:'require', file:'', line: 1, column: 266
System.err:     Frame: function:'', file:'file:///data/data/org.nativescript.vendasmobile/files/app/app.module.js', line: 18, column: 23
System.err:     Frame: function:'', file:'file:///data/data/org.nativescript.vendasmobile/files/app/tns_modules/rxjs/util/Immediate.js', line: 208, column: 21
System.err:     Frame: function:'require', file:'', line: 1, column: 266
System.err:     Frame: function:'', file:'file:///data/data/org.nativescript.vendasmobile/files/app/tns_modules/rxjs/scheduler/AsapAction.js', line: 7, column: 19
System.err:     Frame: function:'', file:'file:///data/data/org.nativescript.vendasmobile/files/app/tns_modules/rxjs/observable/SubscribeOnObservable.js', line: 8, c
olumn: 14
System.err:     Frame: function:'', file:'file:///data/data/org.nativescript.vendasmobile/files/app/tns_modules/rxjs/Rx.js', line: 121, column: 1
System.err:     Frame: function:'require', file:'', line: 1, column: 266
System.err:     Frame: function:'require', file:'', line: 1, column: 266
System.err:     Frame: function:'', file:'file:///data/data/org.nativescript.vendasmobile/files/app/tns_modules/rxjs/util/Immediate.js', line: 208, column: 21
System.err:     Frame: function:'', file:'file:///data/data/org.nativescript.vendasmobile/files/app/tns_modules/rxjs/observable/SubscribeOnObservable.js', line: 8, c
olumn: 14
System.err:     Frame: function:'require', file:'', line: 1, column: 266
System.err:     Frame: function:'require', file:'', line: 1, column: 266
System.err:     Frame: function:'', file:'file:///data/data/org.nativescript.vendasmobile/files/app/shared/synchronizer/korp.synchronizer-back.service.js', line: 4,
column: 12
System.err:     Frame: function:'require', file:'', line: 1, column: 266
System.err:     Frame: function:'', file:'file:///data/data/org.nativescript.vendasmobile/files/app/shared/shared.module.js', line: 9, column: 40
System.err:     Frame: function:'require', file:'', line: 1, column: 266
System.err:     Frame: function:'', file:'file:///data/data/org.nativescript.vendasmobile/files/app/app.module.js', line: 18, column: 23
System.err:     Frame: function:'require', file:'', line: 1, column: 266
System.err:     Frame: function:'', file:'file:///data/data/org.nativescript.vendasmobile/files/app/main.js', line: 5, column: 20
System.err:     Frame: function:'require', file:'', line: 1, column: 266
System.err: TypeError: document.createElement is not a function
System.err: File: "<unknown>, line: 1, column: 265
System.err: StackTrace:
System.err:     Frame: function:'ImmediateDefinition.canUseReadyStateChange', file:'file:///data/data/org.nativescript.vendasmobile/files/app/tns_modules/rxjs/util/I
mmediate.js', line: 56, column: 69
System.err:     Frame: function:'ImmediateDefinition', file:'file:///data/data/org.nativescript.vendasmobile/files/app/tns_modules/rxjs/util/Immediate.js', line: 30,
 column: 27
System.err:     Frame: function:'', file:'file:///data/data/org.nativescript.vendasmobile/files/app/tns_modules/rxjs/util/Immediate.js', line: 208, column: 21
System.err:     Frame: function:'require', file:'', line: 1, column: 266
System.err:     Frame: function:'', file:'file:///data/data/org.nativescript.vendasmobile/files/app/tns_modules/rxjs/scheduler/AsapAction.js', line: 7, column: 19
System.err:     Frame: function:'require', file:'', line: 1, column: 266
System.err:     Frame: function:'', file:'file:///data/data/org.nativescript.vendasmobile/files/app/tns_modules/rxjs/scheduler/asap.js', line: 2, column: 20
System.err:     Frame: function:'require', file:'', line: 1, column: 266
System.err:     Frame: function:'', file:'file:///data/data/org.nativescript.vendasmobile/files/app/tns_modules/rxjs/observable/SubscribeOnObservable.js', line: 8, c
olumn: 14
System.err:     Frame: function:'', file:'file:///data/data/org.nativescript.vendasmobile/files/app/tns_modules/rxjs/operator/subscribeOn.js', line: 2, column: 21
System.err:     Frame: function:'require', file:'', line: 1, column: 266
System.err:     at com.tns.Runtime.runModule(Native Method)
System.err:     ... 9 more
ActivityManager: Process org.nativescript.vendasmobile (pid 18915) has died
ActivityManager: cleanUpApplicationRecord -- 18915"

This error is not happening before the updates, I follow this tutorial here

Which platform(s) does your issue occur on?

Android

Please provide the following version numbers that your issue occurs with:

My package.json:

{
  "description": "NativeScript Application",
  "license": "SEE LICENSE IN <your-license-filename>",
  "readme": "NativeScript Application",
  "repository": "<fill-your-repository-here>",
  "nativescript": {
    "id": "org.nativescript.vendasmobile",
    "tns-android": {
      "version": "3.4.0"
    }
  },
  "dependencies": {
    "@angular/animations": "~5.0.0",
    "@angular/common": "~5.0.0",
    "@angular/compiler": "~5.0.0",
    "@angular/core": "~5.0.0",
    "@angular/forms": "~5.0.0",
    "@angular/http": "~5.0.0",
    "@angular/platform-browser": "~5.0.0",
    "@angular/platform-browser-dynamic": "~5.0.0",
    "@angular/router": "~5.0.0",
    "loki-nativescript-adapter": "^1.0.3",
    "lokijs": "^1.5.1",
    "nativescript-angular": "~5.0.0",
    "nativescript-cardview": "^2.0.4",
    "nativescript-drop-down": "^3.2.0",
    "nativescript-loading-indicator": "^2.4.0",
    "nativescript-pro-ui": "^3.3.0",
    "nativescript-speech-recognition": "^1.3.1",
    "nativescript-theme-core": "~1.0.4",
    "nativescript-toast": "^1.4.6",
    "nativescript-zip": "^1.3.2",
    "reflect-metadata": "~0.1.10",
    "rxjs": "^5.5.0",
    "tns-core-modules": "^3.4.0",
    "zone.js": "^0.8.4"
  },
  "devDependencies": {
    "@angular/compiler-cli": "~5.0.0",
    "@ngtools/webpack": "~1.9.2",
    "babel-traverse": "6.26.0",
    "babel-types": "6.26.0",
    "babylon": "6.18.0",
    "copy-webpack-plugin": "~4.3.1",
    "css-loader": "~0.28.7",
    "extract-text-webpack-plugin": "~3.0.2",
    "lazy": "1.0.11",
    "nativescript-css-loader": "~0.26.0",
    "nativescript-dev-typescript": "~0.6.0",
    "nativescript-dev-webpack": "^0.9.0",
    "nativescript-worker-loader": "~0.8.1",
    "raw-loader": "~0.5.1",
    "resolve-url-loader": "~2.2.1",
    "typescript": "2.4.2",
    "webpack": "~3.10.0",
    "webpack-bundle-analyzer": "^2.9.1",
    "webpack-sources": "~1.1.0"
  }
}
@NickIliev
Copy link
Contributor

@masrc apart from the update instructions can you please try the workflow suggested here (including removing the previously installed application from the test device/emulator)

@masrc
Copy link
Author

masrc commented Jan 3, 2018

I figured out, actually I got this error from rxjs because I was importing only from rxjs, importing from rxjs/Observable, the error is gone. Thank you for all!

@masrc masrc closed this as completed Jan 3, 2018
@snehanyk05
Copy link

snehanyk05 commented Jan 6, 2018

I have the same issue as well. And I've followed the update instructions. Any idea what could be the reason?

@masrc
Copy link
Author

masrc commented Jan 9, 2018

@snehanyk05 Are you using rxjs?

@snehanyk05
Copy link

Yeah I was. I was importing from rxjs/Rx which was causing the problem. Resolved it. Thanks :)

@briosheje
Copy link

Don't forget that every rx module needs this change (even ReplaySubject, Subscription....).

The only imports that I needed to keep as they currently were are the ones like map, catch and do:

import 'rxjs/add/operator/map';
import 'rxjs/add/operator/catch';
import 'rxjs/add/operator/do';

All the other elements needed to be changed from something like:

import { ReplaySubject } from 'rxjs'
to:
import { ReplaySubject } from 'rxjs/ReplaySubject'

@cnqiuxue
Copy link

cnqiuxue commented Jun 1, 2018

Me too, but no solution.
This is my mistake.

System.err: 	Frame: function:'', file:'file:///data/data/org.nativescript.angularnativescript/files/app/tns_modules/rxjs/add/operator/subscribeOn.js', line: 3, column: 21
System.err: 	Frame: function:'require', file:'', line: 1, column: 266
System.err: 	Frame: function:'', file:'file:///data/data/org.nativescript.angularnativescript/files/app/tns_modules/rxjs/Rx.js', line: 121, column: 1
System.err: 	Frame: function:'require', file:'', line: 1, column: 266
System.err: 	Frame: function:'ZoneScheduler.schedule.delay', file:'file:///data/data/org.nativescript.angularnativescript/files/app/tns_modules/apollo-angular/bundle.umd.js', line: 2, column: 112
System.err: 	Frame: function:'', file:'file:///data/data/org.nativescript.angularnativescript/files/app/tns_modules/apollo-angular/bundle.umd.js', line: 5, column: 2
System.err: 	Frame: function:'require', file:'', line: 1, column: 266
System.err: 	Frame: function:'', file:'file:///data/data/org.nativescript.angularnativescript/files/app/app.module.js', line: 5, column: 24
System.err: 	Frame: function:'require', file:'', line: 1, column: 266
System.err: 	Frame: function:'', file:'file:///data/data/org.nativescript.angularnativescript/files/app/main.js', line: 5, column: 20
System.err: 	Frame: function:'require', file:'', line: 1, column: 266
System.err: 
System.err: 
System.err: TypeError: document.createElement is not a function
System.err: File: "<unknown>, line: 1, column: 265
System.err: 
System.err: StackTrace: 
System.err: 	Frame: function:'ImmediateDefinition.canUseReadyStateChange', file:'file:///data/data/org.nativescript.angularnativescript/files/app/tns_modules/rxjs/util/Immediate.js', line: 56, column: 69
System.err: 	Frame: function:'ImmediateDefinition', file:'file:///data/data/org.nativescript.angularnativescript/files/app/tns_modules/rxjs/util/Immediate.js', line: 30, column: 27
System.err: 	Frame: function:'', file:'file:///data/data/org.nativescript.angularnativescript/files/app/tns_modules/rxjs/util/Immediate.js', line: 208, column: 21
System.err: 	Frame: function:'require', file:'', line: 1, column: 266
System.err: 	Frame: function:'', file:'file:///data/data/org.nativescript.angularnativescript/files/app/tns_modules/rxjs/scheduler/AsapAction.js', line: 7, column: 19
System.err: 	Frame: function:'require', file:'', line: 1, column: 266
System.err: 	Frame: function:'', file:'file:///data/data/org.nativescript.angularnativescript/files/app/tns_modules/rxjs/scheduler/asap.js', line: 2, column: 20
System.err: 	Frame: function:'require', file:'', line: 1, column: 266
System.err: 	Frame: function:'', file:'file:///data/data/org.nativescript.angularnativescript/files/app/tns_modules/rxjs/observable/SubscribeOnObservable.js', line: 8, column: 14
System.err: 	Frame: function:'require', file:'', line: 1, column: 266
System.err: 	Frame: function:'', file:'file:///data/data/org.nativescript.angularnativescript/files/app/tns_modules/rxjs/operators/subscribeOn.js', line: 2, column: 31
System.err: 	Frame: function:'require', file:'', line: 1, column: 266
System.err: 	Frame: function:'', file:'file:///data/data/org.nativescript.angularnativescript/files/app/tns_modules/rxjs/operator/subscribeOn.js', line: 2, column: 21
System.err: 	Frame: function:'require', file:'', line: 1, column: 266
System.err: 	Frame: function:'', file:'file:///data/data/org.nativescript.angularnativescript/files/app/tns_modules/rxjs/add/operator/subscribeOn.js', line: 3, column: 21
System.err: 	Frame: function:'require', file:'', line: 1, column: 266
System.err: 	Frame: function:'', file:'file:///data/data/org.nativescript.angularnativescript/files/app/tns_modules/rxjs/Rx.js', line: 121, column: 1
System.err: 	Frame: function:'require', file:'', line: 1, column: 266
System.err: 	Frame: function:'ZoneScheduler.schedule.delay', file:'file:///data/data/org.nativescript.angularnativescript/files/app/tns_modules/apollo-angular/bundle.umd.js', line: 2, column: 112
System.err: 	Frame: function:'', file:'file:///data/data/org.nativescript.angularnativescript/files/app/tns_modules/apollo-angular/bundle.umd.js', line: 5, column: 2
System.err: 	Frame: function:'require', file:'', line: 1, column: 266
System.err: 	Frame: function:'', file:'file:///data/data/org.nativescript.angularnativescript/files/app/app.module.js', line: 5, column: 24
System.err: 	Frame: function:'require', file:'', line: 1, column: 266
System.err: 	Frame: function:'', file:'file:///data/data/org.nativescript.angularnativescript/files/app/main.js', line: 5, column: 20
System.err: 	Frame: function:'require', file:'', line: 1, column: 266
System.err: 
System.err: 

image

ngOnInit(): void {
        this.postsRef = this.apollo.watchQuery<Query>({
            query: gql`
                query getDashboards {
                    getDashboards {
                    name
                    data
                    }
                }
            `
          });

        this.getDashboards = this.postsRef
            .valueChanges
            .map((r) => r.data.getDashboards);
}

package.json

"dependencies": {
    "@angular/animations": "~5.2.0",
    "@angular/common": "~5.2.0",
    "@angular/compiler": "~5.2.0",
    "@angular/core": "~5.2.0",
    "@angular/forms": "~5.2.0",
    "@angular/http": "~5.2.0",
    "@angular/platform-browser": "~5.2.0",
    "@angular/platform-browser-dynamic": "~5.2.0",
    "@angular/router": "~5.2.0",
    "apollo-angular": "^1.1.0",
    "apollo-angular-link-http": "^1.1.0",
    "apollo-cache-inmemory": "^1.2.2",
    "apollo-client": "^2.3.2",
    "apollo-link": "^1.0.0",
    "graphql": "^0.13.2",
    "graphql-tag": "^2.9.2",
    "moment": "^2.22.1",
    "nativescript-angular": "~5.3.0",
    "nativescript-audio-player": "^1.0.3",
    "nativescript-geolocation": "^4.2.6",
    "nativescript-google-maps-sdk": "^2.6.0",
    "nativescript-google-maps-utils": "^0.1.3",
    "nativescript-localstorage": "^1.1.5",
    "nativescript-theme-core": "~1.0.4",
    "nativescript-ui-calendar": "^3.6.0",
    "reflect-metadata": "~0.1.10",
    "rxjs": "~5.5.5",
    "tns-core-modules": "^4.0.1",
    "zone.js": "~0.8.18"
  },

@cnqiuxue
Copy link

cnqiuxue commented Jun 1, 2018

Which platform(s) does your issue occur on?
Android

@ahaneef29
Copy link

@cnqiuxue Android

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants