angular-seed-advanced: {N} Android crashes on Windows with ng2-config & map operator

I’m submitting a … (check one with “x”)

[x] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request => Please do not submit support request here, instead see use [gitter](https://gitter.im/mgechev/angular2-seed) or [stackoverflow](https://stackoverflow.com/questions/tagged/angular2)

Current behavior

When trying to run start.android on Windows with the current HEAD (https://github.com/NathanWalker/angular-seed-advanced/commit/7a412db93af0606b23267b0aca4b8fca62738ce2), the following happens:

JS: ns-renderer: ERROR BOOTSTRAPPING ANGULAR
JS: ns-renderer: this.http.get(...).map is not a function
JS:
JS: TypeError: this.http.get(...).map is not a function
JS:     at t.init (/data/data/com.yourdomain.appname/files/app/tns_modules/ng2-config/bundles/ng2-config.umd.min.js:1:2270)
JS:     at Array.<anonymous> (/data/data/com.yourdomain.appname/files/app/tns_modules/ng2-config/bundles/ng2-config.umd.min.js:1:3162)
JS:     at new ApplicationInitStatus (/data/data/com.yourdomain.appname/files/app/tns_modules/nativescript-angular/node_modules/@angular/core/bundles/core.umd.js:3028:49)
JS:     at NgModuleInjector.get (/NativeModule/module.ngfactory.js:96:87)
JS:     at NgModuleInjector.NativeModuleInjector.createInternal (/NativeModule/module.ngfactory.js:393:153)
JS:     at NgModuleInjector.create (/data/data/com.yourdomain.appname/files/app/tns_modules/nativescript-angular/node_modules/@angular/core/bundles/core.umd.js:6715:80)
JS:     at NgModuleFactory.create (/data/data/com.yourdomain.appname/files/app/tns_modules/nativescript-angular/node_modules/@angular/core/bundles/core.umd.js:6700:22)
JS:     at /data/data/com.yourdomain.appname/files/app/tns_modules/nativescript-angular/node_modules/@angular/core/bundles/core.umd.js:6418:47
JS:     at ZoneDelegate.invoke (/data/data/com.yourdomain.appname/files/app/tns_modules/nativescript-angular/zone-js/dist/zone-nativescript.js:190:28)
JS:     at Object.onInvoke (/data/data/com.yourdomain.appname/files/app/tns_modules/nativescript-angular/node_modules/@angular/core/bundles/core.umd.js:5976:41)

Expected behavior

The application should run.

Minimal reproduction of the problem with instructions

I figured this was a problem related to the recent addition of ng2-config, so I revert to a previous version before it was included (https://github.com/NathanWalker/angular-seed-advanced/commit/4da2e0de2a1446b2a5bf7208ff72784117905086) and the Android app runs fine.

What is the motivation / use case for changing the behavior?

Please tell us about your environment:

npm ERR! Windows_NT 10.0.14393
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "run" "start.livesync.android.device"
npm ERR! node v6.4.0
npm ERR! npm  v3.10.3
  • Angular Seed Version: 7a412db (as stated above at least 4da2e0d doesn’t have this issue)
  • Node: node --version = v6.4.0

…and Merry Christmas! 🎄 😉

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Reactions: 2
  • Comments: 29 (18 by maintainers)

Commits related to this issue

Most upvoted comments

@ghys @fourctv ng2-config is now removed on master. Please pull in these latest changes (which reverts things back to how they were before) and lemme know if all good for you. Ensure to clean everything once again after the pull:

git fetch upstream
git merge upstream/master
rm -rf node_modules nativescript/node_modules nativescript/hooks nativescript/lib nativescript/platforms
npm i

@ghys A minor update to my advice: nativescript-angular@next are at angular 2.3.1 now, so you need to downgrade angular to 2.3.1 and rxjs to 5.0.0-rc.4.

I haven’t tested it yet, as I’m working on #323 and it breaks webpack-bundling for now…

@fourctv I believe I will remove ng2-config for reasons stated here and here unless @fulls1z3 has a solution.

But again things run fine on my system doing exact same steps so def odd.

@fulls1z3 thanks, just pushed to master the new 1.1.2 ng2-config. Runs on Android here for me but I don’t think I tried with map operator, however @fourctv please pull latest master and let us know.