2017-01-11 138 views
2

我試圖在不同的平臺上運行不變的angular-seed-advanced項目。 Web和編譯桌面(Linux/Windows的),跑好了,但是當我試圖在Android(模擬器和真實設備)中運行它,我得到了以下錯誤:angular2-seed-advanced:得到RangeError:超過最大調用堆棧大小

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

有人能幫助或給我一個暗示在哪裏尋找這個問題?提前致謝。

回答

0

作者更新了代碼來解決這個問題,所以錯誤消失了,Android應用程序現在可以正常工作。

相關問題