Skip to content

Android Error - Unable to run project after upgrade to [email protected] #3282

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
kmuthukrishnan opened this issue Dec 22, 2017 · 3 comments

Comments

@kmuthukrishnan
Copy link

kmuthukrishnan commented Dec 22, 2017

Please, provide the details below:

Did you verify this is a real problem by searching [Stack Overflow]

YES

Tell us about the problem

Iam unable to run the nativescript angular project after upgrade to 3.4.0

Which platform(s) does your issue occur on?

Android

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

  • CLI: 3.4.0
  • Cross-platform modules: tns-core-modules : 3.4.0
  • Runtime(s): 3.4.0
  • Plugin(s):
    Please see the full package.json below
{
  "android": {
    "markingMode": "none"
  },
  "description": "NativeScript Application",
  "license": "SEE LICENSE IN <your-license-filename>",
  "readme": "NativeScript Application",
  "repository": "<fill-your-repository-here>",
  "nativescript": {
    "id": "org.nativescript.qbank",
    "tns-ios": {
      "version": "3.4.0"
    },
    "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",
    "nativescript-algolia": "0.0.4",
    "nativescript-angular": "~5.0.0",
    "nativescript-camera": "^3.1.4",
    "nativescript-email": "^1.5.1",
    "nativescript-fancyalert": "^1.1.2",
    "nativescript-filter-select": "^1.2.1",
    "nativescript-geolocation": "^3.0.0",
    "nativescript-gif": "^1.0.9",
    "nativescript-imagepicker": "^4.0.1",
    "nativescript-iqkeyboardmanager": "^1.1.0",
    "nativescript-loading-indicator": "^2.3.2",
    "nativescript-plugin-firebase": "3.11.2",
    "nativescript-pro-ui": "^3.3.0",
    "nativescript-theme-core": "~1.0.4",
    "nativescript-toast": "^1.4.5",
    "nativescript-web-image-cache": "^4.2.2",
    "reflect-metadata": "~0.1.8",
    "rxjs": "~5.4.2",
    "tns-core-modules": "^3.4.0"
  },
  "devDependencies": {
    "babel-traverse": "6.22.1",
    "babel-types": "6.22.0",
    "babylon": "6.15.0",
    "codelyzer": "~4.0.2",
    "es6-promise-loader": "^1.0.2",
    "lazy": "1.0.11",
    "nativescript-dev-android-snapshot": "^0.*.*",
    "nativescript-dev-typescript": "~0.5.0",
    "tslint": "^5.1.0",
    "typescript": "^2.4.2",
    "zone.js": "~0.8.2"
  }
}

Please tell us how to recreate the issue in as much detail as possible.

On tns run android getting the following error

`Executing before-prepare hook from C:\Users\krithika\Desktop\NATIVESCRIPT\QUEST\questNewS\hooks\before-prepare\nativescript-dev-typescript.js
Found peer TypeScript 2.4.2
Executing before-prepare hook from C:\Users\krithika\Desktop\NATIVESCRIPT\QUEST\questNewS\hooks\before-prepare\nativescript-plugin-firebase.js
Preparing project...
Project successfully prepared (Android)
Executing after-prepare hook from C:\Users\krithika\Desktop\NATIVESCRIPT\QUEST\questNewS\hooks\after-prepare\firebase-build-gradle.js
Configure firebase
Executing after-prepare hook from C:\Users\krithika\Desktop\NATIVESCRIPT\QUEST\questNewS\hooks\after-prepare\firebase-copy-google-services.js
Copy C:\Users\krithika\Desktop\NATIVESCRIPT\QUEST\questNewS\app\App_Resources\Android\google-services.json to C:\Users\krithika\Desktop\NATIVESCRIPT\QUEST\questNewS\platforms\android\google-services.json.
Executing after-prepare hook from C:\Users\krithika\Desktop\NATIVESCRIPT\QUEST\questNewS\hooks\after-prepare\nativescript-dev-android-snapshot.js
Executing after-prepare hook from C:\Users\krithika\Desktop\NATIVESCRIPT\QUEST\questNewS\hooks\after-prepare\nativescript-plugin-firebase.js
Refreshing application...
Successfully synced application org.nativescript.qbank on device 192.168.229.101:5555.
Executing before-watch hook from C:\Users\krithika\Desktop\NATIVESCRIPT\QUEST\questNewS\hooks\before-watch\nativescript-dev-typescript.js
Found peer TypeScript 2.4.2
ActivityManager: Start proc 3685:org.nativescript.qbank/u0a133 for activity org.nativescript.qbank/com.tns.NativeScriptActivity
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.qbank/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.qbank/files/app/tns_modules/rxjs/util/Immediate.js', line: 56, column: 69
System.err:     Frame: function:'ImmediateDefinition', file:'file:///data/data/org.nativescript.qbank/files/app/tns_modules/rxjs/util/Immediate.js', line: 30, column: 27
System.err:     Frame: function:'', file:'file:///data/data/org.nativescript.qbank/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.qbank/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.qbank/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.qbank/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.qbank/files/app/tns_modules/rxjs/operator/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.qbank/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.qbank/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.qbank/files/app/services/searchfromalgu.service.js', line: 5, column: 1
System.err:     Frame: function:'require', file:'', line: 1, column: 266
System.err:     Frame: function:'', file:'file:///data/data/org.nativescript.qbank/files/app/shared/searchbar/searchbar.component.js', line: 9, column: 32
System.err:     Frame: function:'require', file:'', line: 1, column: 266
System.err:     Frame: function:'', file:'file:///data/data/org.nativescript.qbank/files/app/shared/shared.module.js', line: 7, column: 29
System.err:     Frame: function:'require', file:'', line: 1, column: 266
System.err:     Frame: function:'', file:'file:///data/data/org.nativescript.qbank/files/app/app.module.js', line: 12, column: 23
System.err:     Frame: function:'require', file:'', line: 1, column: 266
System.err:     Frame: function:'', file:'file:///data/data/org.nativescript.qbank/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.qbank/files/app/tns_modules/rxjs/util/Immediate.js', line: 56, column: 69
System.err:     Frame: function:'ImmediateDefinition', file:'file:///data/data/org.nativescript.qbank/files/app/tns_modules/rxjs/util/Immediate.js', line: 30, column: 27
System.err:     Frame: function:'', file:'file:///data/data/org.nativescript.qbank/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.qbank/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.qbank/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.qbank/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.qbank/files/app/tns_modules/rxjs/operator/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.qbank/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.qbank/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.qbank/files/app/services/searchfromalgu.service.js', line: 5, column: 1
System.err:     Frame: function:'require', file:'', line: 1, column: 266
System.err:     Frame: function:'', file:'file:///data/data/org.nativescript.qbank/files/app/shared/searchbar/searchbar.component.js', line: 9, column: 32
System.err:     Frame: function:'require', file:'', line: 1, column: 266
System.err:     Frame: function:'', file:'file:///data/data/org.nativescript.qbank/files/app/shared/shared.module.js', line: 7, column: 29
System.err:     Frame: function:'require', file:'', line: 1, column: 266
System.err:     Frame: function:'', file:'file:///data/data/org.nativescript.qbank/files/app/app.module.js', line: 12, column: 23
System.err:     Frame: function:'require', file:'', line: 1, column: 266
System.err:     Frame: function:'', file:'file:///data/data/org.nativescript.qbank/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.qbank/files/app/tns_modules/rxjs/util/Immediate.js', line: 56, column: 69
System.err:     Frame: function:'ImmediateDefinition', file:'file:///data/data/org.nativescript.qbank/files/app/tns_modules/rxjs/util/Immediate.js', line: 30, column: 27
System.err:     Frame: function:'', file:'file:///data/data/org.nativescript.qbank/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.qbank/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.qbank/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.qbank/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.qbank/files/app/tns_modules/rxjs/operator/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.qbank/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.qbank/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.qbank/files/app/services/searchfromalgu.service.js', line: 5, column: 1
System.err:     Frame: function:'require', file:'', line: 1, column: 266
System.err:     Frame: function:'', file:'file:///data/data/org.nativescript.qbank/files/app/shared/searchbar/searchbar.component.js', line: 9, column: 32
System.err:     Frame: function:'require', file:'', line: 1, column: 266
System.err:     Frame: function:'', file:'file:///data/data/org.nativescript.qbank/files/app/shared/shared.module.js', line: 7, column: 29
System.err:     Frame: function:'require', file:'', line: 1, column: 266
System.err:     Frame: function:'', file:'file:///data/data/org.nativescript.qbank/files/app/app.module.js', line: 12, column: 23
System.err:     Frame: function:'require', file:'', line: 1, column: 266
System.err:     Frame: function:'', file:'file:///data/data/org.nativescript.qbank/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.qbank/files/app/tns_modules/rxjs/util/Immediate.js', line: 56, column: 69
System.err:     Frame: function:'ImmediateDefinition', file:'file:///data/data/org.nativescript.qbank/files/app/tns_modules/rxjs/util/Immediate.js', line: 30, column: 27
System.err:     Frame: function:'', file:'file:///data/data/org.nativescript.qbank/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.qbank/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.qbank/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.qbank/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.qbank/files/app/tns_modules/rxjs/operator/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.qbank/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.qbank/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.qbank/files/app/services/searchfromalgu.service.js', line: 5, column: 1
System.err:     Frame: function:'require', file:'', line: 1, column: 266
System.err:     Frame: function:'', file:'file:///data/data/org.nativescript.qbank/files/app/shared/searchbar/searchbar.component.js', line: 9, column: 32
System.err:     Frame: function:'require', file:'', line: 1, column: 266
System.err:     Frame: function:'', file:'file:///data/data/org.nativescript.qbank/files/app/shared/shared.module.js', line: 7, column: 29
System.err:     Frame: function:'require', file:'', line: 1, column: 266
System.err:     Frame: function:'', file:'file:///data/data/org.nativescript.qbank/files/app/app.module.js', line: 12, column: 23
System.err:     Frame: function:'require', file:'', line: 1, column: 266
System.err:     Frame: function:'', file:'file:///data/data/org.nativescript.qbank/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.qbank/files/app/tns_modules/rxjs/util/Immediate.js', line: 56, column: 69
System.err:     Frame: function:'ImmediateDefinition', file:'file:///data/data/org.nativescript.qbank/files/app/tns_modules/rxjs/util/Immediate.js', line: 30, column: 27
System.err:     Frame: function:'', file:'file:///data/data/org.nativescript.qbank/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.qbank/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.qbank/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.qbank/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.qbank/files/app/tns_modules/rxjs/operator/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.qbank/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.qbank/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.qbank/files/app/services/searchfromalgu.service.js', line: 5, column: 1
System.err:     Frame: function:'require', file:'', line: 1, column: 266
System.err:     Frame: function:'', file:'file:///data/data/org.nativescript.qbank/files/app/shared/searchbar/searchbar.component.js', line: 9, column: 32
System.err:     Frame: function:'require', file:'', line: 1, column: 266
System.err:     Frame: function:'', file:'file:///data/data/org.nativescript.qbank/files/app/shared/shared.module.js', line: 7, column: 29
System.err:     Frame: function:'require', file:'', line: 1, column: 266
System.err:     Frame: function:'', file:'file:///data/data/org.nativescript.qbank/files/app/app.module.js', line: 12, column: 23
System.err:     Frame: function:'require', file:'', line: 1, column: 266
System.err:     Frame: function:'', file:'file:///data/data/org.nativescript.qbank/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.qbank/files/app/tns_modules/rxjs/util/Immediate.js', line: 56, column: 69
System.err:     Frame: function:'ImmediateDefinition', file:'file:///data/data/org.nativescript.qbank/files/app/tns_modules/rxjs/util/Immediate.js', line: 30, column: 27
System.err:     Frame: function:'', file:'file:///data/data/org.nativescript.qbank/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.qbank/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.qbank/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.qbank/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.qbank/files/app/tns_modules/rxjs/operator/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.qbank/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.qbank/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.qbank/files/app/services/searchfromalgu.service.js', line: 5, column: 1
System.err:     Frame: function:'require', file:'', line: 1, column: 266
System.err:     Frame: function:'', file:'file:///data/data/org.nativescript.qbank/files/app/shared/searchbar/searchbar.component.js', line: 9, column: 32
System.err:     Frame: function:'require', file:'', line: 1, column: 266
System.err:     Frame: function:'', file:'file:///data/data/org.nativescript.qbank/files/app/shared/shared.module.js', line: 7, column: 29
System.err:     Frame: function:'require', file:'', line: 1, column: 266
System.err:     Frame: function:'', file:'file:///data/data/org.nativescript.qbank/files/app/app.module.js', line: 12, column: 23
System.err:     Frame: function:'require', file:'', line: 1, column: 266
System.err:     Frame: function:'', file:'file:///data/data/org.nativescript.qbank/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.qbank/files/app/tns_modules/rxjs/util/Immediate.js', line: 56, column: 69
System.err:     Frame: function:'ImmediateDefinition', file:'file:///data/data/org.nativescript.qbank/files/app/tns_modules/rxjs/util/Immediate.js', line: 30, column: 27
System.err:     Frame: function:'', file:'file:///data/data/org.nativescript.qbank/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.qbank/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.qbank/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.qbank/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.qbank/files/app/tns_modules/rxjs/operator/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.qbank/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.qbank/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.qbank/files/app/services/searchfromalgu.service.js', line: 5, column: 1
System.err:     Frame: function:'require', file:'', line: 1, column: 266
System.err:     Frame: function:'', file:'file:///data/data/org.nativescript.qbank/files/app/shared/searchbar/searchbar.component.js', line: 9, column: 32
System.err:     Frame: function:'require', file:'', line: 1, column: 266
System.err:     Frame: function:'', file:'file:///data/data/org.nativescript.qbank/files/app/shared/shared.module.js', line: 7, column: 29
System.err:     Frame: function:'require', file:'', line: 1, column: 266
System.err:     Frame: function:'', file:'file:///data/data/org.nativescript.qbank/files/app/app.module.js', line: 12, column: 23
System.err:     Frame: function:'require', file:'', line: 1, column: 266
System.err:     Frame: function:'', file:'file:///data/data/org.nativescript.qbank/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.qbank/files/app/tns_modules/rxjs/util/Immediate.js', line: 56, column: 69
System.err:     Frame: function:'ImmediateDefinition', file:'file:///data/data/org.nativescript.qbank/files/app/tns_modules/rxjs/util/Immediate.js', line: 30, column: 27
System.err:     Frame: function:'', file:'file:///data/data/org.nativescript.qbank/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.qbank/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.qbank/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.qbank/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.qbank/files/app/tns_modules/rxjs/operator/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.qbank/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.qbank/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.qbank/files/app/services/searchfromalgu.service.js', line: 5, column: 1
System.err:     Frame: function:'require', file:'', line: 1, column: 266
System.err:     Frame: function:'', file:'file:///data/data/org.nativescript.qbank/files/app/shared/searchbar/searchbar.component.js', line: 9, column: 32
System.err:     Frame: function:'require', file:'', line: 1, column: 266
System.err:     Frame: function:'', file:'file:///data/data/org.nativescript.qbank/files/app/shared/shared.module.js', line: 7, column: 29
System.err:     Frame: function:'require', file:'', line: 1, column: 266
System.err:     Frame: function:'', file:'file:///data/data/org.nativescript.qbank/files/app/app.module.js', line: 12, column: 23
System.err:     Frame: function:'require', file:'', line: 1, column: 266
System.err:     Frame: function:'', file:'file:///data/data/org.nativescript.qbank/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.qbank/files/app/tns_modules/rxjs/util/Immediate.js', line: 56, column: 69
System.err:     Frame: function:'ImmediateDefinition', file:'file:///data/data/org.nativescript.qbank/files/app/tns_modules/rxjs/util/Immediate.js', line: 30, column: 27
System.err:     Frame: function:'', file:'file:///data/data/org.nativescript.qbank/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.qbank/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.qbank/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.qbank/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.qbank/files/app/tns_modules/rxjs/operator/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.qbank/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.qbank/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.qbank/files/app/services/searchfromalgu.service.js', line: 5, column: 1
System.err:     Frame: function:'require', file:'', line: 1, column: 266
System.err:     Frame: function:'', file:'file:///data/data/org.nativescript.qbank/files/app/shared/searchbar/searchbar.component.js', line: 9, column: 32
System.err:     Frame: function:'require', file:'', line: 1, column: 266
System.err:     Frame: function:'', file:'file:///data/data/org.nativescript.qbank/files/app/shared/shared.module.js', line: 7, column: 29
System.err:     Frame: function:'require', file:'', line: 1, column: 266
System.err:     Frame: function:'', file:'file:///data/data/org.nativescript.qbank/files/app/app.module.js', line: 12, column: 23
System.err:     Frame: function:'require', file:'', line: 1, column: 266
System.err:     Frame: function:'', file:'file:///data/data/org.nativescript.qbank/files/app/main.js', line: 5, column: 20
System.err:     Frame: function:'require', file:'', line: 1, column: 266
ActivityManager: Process org.nativescript.qbank (pid 3685) has died
6:43:44 PM - Compilation complete. Watching for file changes.`

Is there code involved? If so, please share the minimal amount of code needed to recreate the problem.

@NickIliev
Copy link
Contributor

@kmuthukrishnan some of your dependencies and devDependencies are not updated to the proper version (e.g. nativescript-dev-typescript and no need of nativescript-dev-android-snapshot). Use this blog post as reference on how to migrate your project to v3.4.0.
The blog post will guide you step=-by-step into updating all related dependencies and creating the needed changes in your code base.

You can also use as reference this package.json

@kmuthukrishnan
Copy link
Author

Thanks @NickIliev . I managed to solve this and getting the app running on Ns 3.4.0. But now Iam having an issue with all firebase queries as outlined in this issue here

Please help!

@souly1
Copy link

souly1 commented Dec 26, 2017

Hi @kmuthukrishnan , could you perhaps elaborate as to what is missing?
Thanks

UPDATE:
Nevermind, saw your comment on 'NativeScript/nativescript-angular#1137'
, had to change several things:
remove:
import {Scheduler} from "rxjs/Rx";

add:
import 'rxjs/add/observable/of';
import "rxjs/add/observable/defer";
import "rxjs/add/observable/interval";
import "rxjs/add/operator/takeWhile";
import {Scheduler} from "rxjs/Scheduler";
import 'rxjs/add/operator/mergeMap';
import 'rxjs/add/operator/switchMap';
import 'rxjs/add/operator/concatAll';
import 'rxjs/add/operator/concatMap';
import 'rxjs/add/operator/buffer';

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

No branches or pull requests

3 participants