Skip to content

Android won't load rxjs anymore #668

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
vincentpalita opened this issue Feb 14, 2017 · 2 comments
Closed

Android won't load rxjs anymore #668

vincentpalita opened this issue Feb 14, 2017 · 2 comments
Labels

Comments

@vincentpalita
Copy link

vincentpalita commented Feb 14, 2017

When using new version of nativescript-angular 1.4.0 I cannot run android development anymore.
On iOS part it works fine.
I rollbacked to previous version (1.1.0) and everything works fine again.

I get following error all the time with 1.4.0:
JS: TypeError: this.actions$.ofType(...).mapTo is not a function

It seems that there is a problem loading rxjs dependency. I didn't change anything in my code except dependencies versions:

  "dependencies": {
    "@angular/common": "2.4.7",
    "@angular/compiler": "2.4.7",
    "@angular/core": "2.4.7",
    "@angular/forms": "2.4.7",
    "@angular/http": "2.4.7",
    "@angular/platform-browser": "2.4.7",
    "@angular/platform-browser-dynamic": "2.4.7",
    "@angular/router": "3.4.7",
    "@ngrx/core": "1.2.0",
    "@ngrx/effects": "2.0.0",
    "@ngrx/store": "2.2.1",
    "@types/core-js": "0.9.35",
    "@types/escape-string-regexp": "0.0.30",
    "@types/lodash": "4.14.52",
    "@types/node": "7.0.5",
    "angular2-jwt": "0.1.28",
    "angular2-moment": "1.2.0",
    "blueimp-md5": "2.6.0",
    "escape-string-regexp": "1.0.5",
    "knock-knock-jokes": "1.7.0",
    "lodash": "^4.17.4",
    "merge-options": "0.0.64",
    "moment": "2.17.1",
    "nativescript-angular": "1.4.0",
    "nativescript-intl": "~0.0.6",
    "nativescript-iqkeyboardmanager": "^1.0.1",
    "nativescript-social-share": "1.3.2",
    "nativescript-theme-core": "^1.0.0",
    "ng2-translate": "5.0.0",
    "reflect-metadata": "~0.1.8",
    "rxjs": "5.1.0",
    "tns-core-modules": "2.5.0"
  },
  "devDependencies": {
    "@angular/compiler-cli": "2.4.7",
    "@ngtools/webpack": "1.2.9",
    "acorn": "^4.0.10",
    "babel-traverse": "6.22.1",
    "babel-types": "6.22.0",
    "babylon": "6.15.0",
    "codelyzer": "2.0.0",
    "copy-webpack-plugin": "4.0.1",
    "css-loader": "~0.26.0",
    "extract-text-webpack-plugin": "2.0.0-beta.5",
    "fs-extra": "2.0.0",
    "glob": "^7.0.5",
    "htmlparser2": "~3.9.2",
    "lazy": "1.0.11",
    "nativescript-css-loader": "~0.26.0",
    "nativescript-dev-sass": "^0.4.1",
    "nativescript-dev-typescript": "0.3.7",
    "nativescript-dev-webpack": "0.3.3",
    "opener": "^1.4.1",
    "raw-loader": "~0.5.1",
    "resolve-url-loader": "~1.6.0",
    "tns-platform-declarations": "^2.4.0",
    "tslint": "4.4.2",
    "typescript": "2.1.6",
    "webpack": "2.2.1",
    "webpack-sources": "~0.1.3",
    "zone.js": "0.7.6"
  }

When bundling with webpack the application works fine on Android.
This is only not running on development mode (tns run android --emulator --watch)

Any insight appreciated :)

@NickIliev
Copy link

Hey @vincentpalita try using this version of RxJS

"rxjs": "~5.0.1",

@vincentpalita
Copy link
Author

Hi @NickIliev,

omg... I lost so many hours tried to figure out what was going wrong.
This is now working fine.

Thank you very much.
It seems to also fix this issue:
NativeScript/nativescript-cli#2487

Thanks again!
Vincent

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

No branches or pull requests

2 participants