干净设置上的隐秘角度2错误

时间:2016-05-13 14:57:48

标签: angular

我已经使用Angular 2 beta 15创建了一个ASP.NET WebApi2项目。该项目在我的系统上运行完全正常但是当我的拼贴从源代码控制中获取它们时,他们在加载主应用程序时都会收到此错误(它保持不变关于<app>Loading</app>的“加载”消息。我无法弄清楚他们最终缺少什么,我会感激任何帮助。

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的内部迷路了。我猜我们需要在他们的计算机上安装其他东西,但我不知道是什么......

1 个答案:

答案 0 :(得分:0)

问题是VS.NET Update 1.每台装有U1的电脑都有这个问题。安装Update 2解决了它。仍然不知道为什么虽然..