2016-07-07 67 views
0

問題角CLI更新後顯示於β9:角CLI(404未找到)加載的http://本地主機:4200 /符號觀察的

Failed to load resource: the server responded with a status of 404 (Not Found) 
zone.js:461 Unhandled Promise rejection: (SystemJS) Error: XHR error (404 Not Found) loading http://localhost:4200/symbol-observable 
     at XMLHttpRequest.wrapFn [as _onreadystatechange] (http://localhost:4200/vendor/zone.js/dist/zone.js:769:30) 
     at ZoneDelegate.invokeTask (http://localhost:4200/vendor/zone.js/dist/zone.js:356:38) 
     at Zone.runTask (http://localhost:4200/vendor/zone.js/dist/zone.js:256:48) 
     at XMLHttpRequest.ZoneTask.invoke (http://localhost:4200/vendor/zone.js/dist/zone.js:423:34) 
    Error loading http://localhost:4200/symbol-observable as "symbol-observable" from http://localhost:4200/vendor/rxjs/Observable.js ; Zone: <root> ; Task: Promise.then ; Value: Error: (SystemJS) Error: XHR error (404 Not Found) loading http://localhost:4200/symbol-observable(…)consoleError @ zone.js:461 
zone.js:463 Error: Uncaught (in promise): Error: (SystemJS) Error: XHR error (404 Not Found) loading http://localhost:4200/symbol-observable(…)consoleError @ zone.js:463 
http://localhost:4200/symbol-observable Failed to load resource: the server responded with a status of 404 (Not Found) 

package.json已安裝。更新到最新。 像錯誤和答案XHR doesnt不解決它。 我該如何解決這個問題。

+0

也許你更新了rxjs等,並忘記重新啓動服務器? – user4401

回答

3

可能有更好的解決方案,但我一直無法得到一個角度cli生成的應用程序與rxjs 5.0.0-beta.6以上的任何工作。所以做:

npm install [email protected] --save 

然後

ng build 

問題解決了我。

相關問題