2016-05-13 9 views
0

Angular 2 Beta 15でASP.NET WebApi2プロジェクトを作成しました。私のシステムでは完全に正常に動作しますが、ソース管理者から取得したプロジェクトでは、メインアプリの読み込み中にエラーが発生しました(<app>Loading</app>の「読み込み中」のメッセージにとどまります)。彼らの最後に何が欠けているのか分からず、助けてくれてありがとう。きれいな設定でCryptic Angular 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です。

私はデバッグしようとしましたが、角の腸で失われました。私は彼らのコンピュータに何か他のものをインストールする必要があると思っていますが、私は何がわからないのですか。

答えて

0

問題はVS.NET Update 1でした。 Update 2をインストールするとそれが解決されました。まだなぜか分からない..

関連する問題