0
我已經創建了一個ASP.NET WebApi2項目與Angular 2測試版15.該項目在我的系統上工作得很好,但是當我的collagues從源代碼控制得到它們都得到這個加載主應用程序時出錯(它保留在<app>Loading</app>
的「加載」消息中)。我無法弄清楚他們最終失去了什麼,我很感激任何幫助。在乾淨的設置上隱藏的角2錯誤
EXCEPTION: SyntaxError: Unexpected token {
EXCEPTION: Error: Uncaught (in promise): SyntaxError: Unexpected token {
Call stack:
angular2.dev.js:23925 Error: Uncaught (in promise): SyntaxError: Unexpected token {
at resolvePromise (angular2-polyfills.js:602)
at angular2-polyfills.js:638
at ZoneDelegate.invokeTask (angular2-polyfills.js:423)
at Object.NgZoneImpl.inner.inner.fork.onInvokeTask (angular2.dev.js:2118)
at ZoneDelegate.invokeTask (angular2-polyfills.js:422)
at Zone.runTask (angular2-polyfills.js:320)
at drainMicroTaskQueue (angular2-polyfills.js:541)
at XMLHttpRequest.ZoneTask.invoke (angular2-polyfills.js:493)BrowserDomAdapter.logError
@ angular2.dev.js:23925ExceptionHandler.call
@ angular2.dev.js:1323(anonymous function)
@ angular2.dev.js:12857schedulerFn
@ angular2.dev.js:13264SafeSubscriber.__tryOrUnsub
@ Rx.js:10775SafeSubscriber.next
@ Rx.js:10730Subscriber._next
@ Rx.js:10690Subscriber.next
@ Rx.js:10667Subject._finalNext
@ Rx.js:11191Subject._next
@ Rx.js:11183Subject.next
@ Rx.js:11142EventEmitter.emit
@ angular2.dev.js:13245NgZone._zoneImpl.ng_zone_impl_1.NgZoneImpl.onError
@ angular2.dev.js:13666NgZoneImpl.inner.inner.fork.onHandleError
@ angular2.dev.js:2143ZoneDelegate.handleError
@ angular2-polyfills.js:394Zone.runGuarded
@ angular2-polyfills.js:300drainMicroTaskQueue
@ angular2-polyfills.js:554ZoneTask.invoke
@ angular2-polyfills.js:493
IIS設置,文件夾結構,瀏覽器版本都一樣。任何請求都沒有錯誤,全部都是200 OK。
我試圖調試,但在Angular的腸子裏迷路了。我猜我們需要在他們的計算機上安裝其他東西,但我不知道是什麼..