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
- Start fresh from https://github.com/NathanWalker/angular-seed-advanced/commit/7a412db93af0606b23267b0aca4b8fca62738ce2
yarn
npm run start.android
(also triedcd nativescript && tns run android
since I’m using Genymotion)
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 least4da2e0d
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
- fix: update deps https://github.com/NathanWalker/angular-seed-advanced/issues/327 — committed to NathanWalker/angular-seed-advanced by NathanWalker 7 years ago
- Upstream merge (#15) * Update multilingual.service.ts (#235) * Fix for #292, NPM run clean fails with TSError: ⨯ Unable to compile TypeScript (#233) * Fix #232 - npm run clean fails with compil... — committed to zertyz/angular-seed-advanced-spikes by zertyz 7 years ago
- Upstream merge (#4) * Upstream merge (#14) * remove yarn install on travis * docs: update the list of wiki contributors * Fix failing AoT build As of angular/angular b15039d, the 'transit... — committed to zertyz/observatorio-SUAS-formularios by zertyz 7 years ago
- Upstream merge (#16) * Update multilingual.service.ts (#235) * Fix for #292, NPM run clean fails with TSError: ⨯ Unable to compile TypeScript (#233) * Fix #232 - npm run clean fails with compil... — committed to zertyz/angular-seed-advanced-spikes by zertyz 7 years ago
- Upstream merge (#17) * Update multilingual.service.ts (#235) * Fix for #292, NPM run clean fails with TSError: ⨯ Unable to compile TypeScript (#233) * Fix #232 - npm run clean fails with compil... — committed to zertyz/angular-seed-advanced-spikes by zertyz 7 years ago
- Upstream merge (#18) * Update multilingual.service.ts (#235) * Fix for #292, NPM run clean fails with TSError: ⨯ Unable to compile TypeScript (#233) * Fix #232 - npm run clean fails with compil... — committed to zertyz/angular-seed-advanced-spikes by zertyz 7 years ago
- Upstream merge (#5) * Upstream merge (#14) * remove yarn install on travis * docs: update the list of wiki contributors * Fix failing AoT build As of angular/angular b15039d, the 'transit... — committed to zertyz/observatorio-SUAS-formularios by zertyz 7 years ago
@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:
@ghys A minor update to my advice:
nativescript-angular@next
are atangular 2.3.1
now, so you need to downgradeangular
to2.3.1
andrxjs
to5.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 withmap
operator, however @fourctv please pull latest master and let us know.