Angular cli (404 Not Found) 加载 http://localhost:4200/symbol-observable
Angular cli (404 Not Found) loading http://localhost:4200/symbol-observable
angular cli 更新到 beta 9 后出现问题:
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 之类的错误和答案并不能解决它。
我该如何解决这个问题。
可能有更好的解决方案,但我一直无法获得一个 angular-cli 生成的应用程序来处理任何高于 rxjs 5.0.0-beta.6 的应用程序。也一样:
npm install rxjs@5.0.0-beta.6 --save
然后
ng build
帮我修好了。
angular cli 更新到 beta 9 后出现问题:
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 之类的错误和答案并不能解决它。 我该如何解决这个问题。
可能有更好的解决方案,但我一直无法获得一个 angular-cli 生成的应用程序来处理任何高于 rxjs 5.0.0-beta.6 的应用程序。也一样:
npm install rxjs@5.0.0-beta.6 --save
然后
ng build
帮我修好了。