angular2-seed-advanced:得到RangeError:最大调用堆栈大小超过

时间:2017-01-11 11:08:44

标签: angular angular2-nativescript angular2-seed

我正在尝试在不同平台上运行未更改的angular-seed-advanced项目。 Web和桌面(linux / windows)编译并运行正常,但当我尝试在android(模拟器和真实设备)上运行它时,我收到以下错误:

Successfully deployed on device with identifier 'emulator-5554'.
JS: ns-renderer: ERROR BOOTSTRAPPING ANGULAR
JS: ns-renderer: Maximum call stack size exceeded
JS: 
JS: RangeError: Maximum call stack size exceeded
JS:     at ScanSubscriber.Subscriber [as constructor] (/data/data/com.yourdomain.appname/files/app/tns_modules/rxjs/Subscriber.js:31:24)
JS:     at new ScanSubscriber (/data/data/com.yourdomain.appname/files/app/tns_modules/rxjs/operator/scan.js:79:16)
JS:     at ScanOperator.call (/data/data/com.yourdomain.appname/files/app/tns_modules/rxjs/operator/scan.js:67:33)
JS:     at AnonymousSubject.Observable.subscribe (/data/data/com.yourdomain.appname/files/app/tns_modules/nativescript-angular/node_modules/rxjs/Observable.js:42:22)
JS:     at ScanOperator.call (/data/data/com.yourdomain.appname/files/app/tns_modules/rxjs/operator/scan.js:67:23)
JS:     at AnonymousSubject.Observable.subscribe (/data/data/com.yourdomain.appname/files/app/tns_modules/nativescript-angular/node_modules/rxjs/Observable.js:42:22)
JS:     at ScanOperator.call (/data/data/com.yourdomain.appname/files/app/tns_modules/rxjs/operator/scan.js:67:23)
JS:     at AnonymousSubject.Observable.subscribe (/data/data/com.yourdomain.appname/files/app/tns_modules/nativescript-angular/node_modules/rxjs/Observable.js:42:22)
JS:     at ScanOperator.call (/data/data/com.yourdomain.appname/files/app/tns_modules/rxjs/operator/scan.js:67:23)
JS:     at AnonymousSubject.Observable.subscribe (/data/data/com.yourdomain.appname/files/app/tns_modules/nativescript-angular/node_modules/rxjs/Observable.js:42:22)

emulator screenshot

有人可以帮忙或者给我一个提示,在哪里寻找这个问题?提前谢谢。

1 个答案:

答案 0 :(得分:0)

作者更新了代码以解决此问题,因此错误消失了,Android app现在正常工作。