I recently upgraded my SPA from @angular RC5 to the official release. While everything was functioning properly in development before the upgrade with no errors in the chrome debug console, I now encounter an issue.
After updating my package.json file to include:
"dependencies": {
"@angular/common": "~2.0.1",
"@angular/compiler": "~2.0.1",
"@angular/core": "~2.0.1",
"@angular/forms": "~2.0.1",
"@angular/http": "~2.0.1",
"@angular/platform-browser": "~2.0.1",
"@angular/platform-browser-dynamic": "~2.0.1",
"@angular/router": "~3.0.1",
"es6-shim": "^0.35.0",
"lodash": "^4.14.1",
"reflect-metadata": "^0.1.3",
"rxjs": "5.0.0-beta.6",
"systemjs": "0.19.27",
"underscore": "^1.8.3",
"zone.js": "^0.6.12"
},
In addition, I removed certain ROUTER_PROVIDER
references and all multi-line comments. However, upon running my application again, I encountered the following error:
zone.js:1274 GET http://localhost:3002/traceur 404 (Not Found)scheduleTask @ zone.js:1274ZoneDelegate.scheduleTask @ zone.js:216Zone.scheduleMacroTask @ zone.js:153(anonymous function) @ zone.js:1304send @ VM1437:3fetchTextFromURL @ system.src.js:1156(anonymous function) @ system.src.js:1739ZoneAwarePromise @ zone.js:478(anonymous function) @ system.src.js:1738(anonymous function) @ system.src.js:2764(anonymous function) @ system.src.js:3338(anonymous function) @ system.src.js:3605(anonymous function) @ system.src.js:3990(anonymous function) @ system.src.js:4453(anonymous function) @ system.src.js:4705(anonymous function) @ system.src.js:408ZoneDelegate.invoke @ zone.js:203Zone.run @ zone.js:96(anonymous function) @ zone.js:462ZoneDelegate.invokeTask @ zone.js:236Zone.runTask @ zone.js:136drainMicroTaskQueue @ zone.js:368ZoneTask.invoke @ zone.js:308
zone.js:355 Unhandled Promise rejection: Error: XHR error (404 Not Found) loading http://localhost:3002/traceur
at XMLHttpRequest.wrapFn [as _onreadystatechange] (http://localhost:3002/vendor/zone.js/dist/zone.js:647:29)
at ZoneDelegate.invokeTask (http://localhost:3002/vendor/zone.js/dist/zone.js:236:37)
at Zone.runTask
(http://localhost:3002/vendor/zone.js/dist/zone.js:136:47)
at XMLHttpRequest.ZoneTask.invoke (http://localhost:3002/vendor/zone.js/dist/zone.js:304:33)
Error loading http://localhost:3002/traceur
Error loading http://localhost:3002/vendor/@angular/platform-browser-dynamic/index.js as "@angular/platform-browser-dynamic" from http://localhost:3002/app/main.js ; Zone: <root> ; Task: Promise.then ; Value: Error: Error: XHR error (404 Not Found) loading http://localhost:3002/traceur(…) nullconsoleError @ zone.js:355_loop_1 @ zone.js:382drainMicroTaskQueue @ zone.js:386ZoneTask.invoke @ zone.js:308
zone.js:357 Error: Uncaught (in promise): Error: Error: XHR error (404 Not Found) loading http://localhost:3002/traceur(…)consoleError @ zone.js:357_loop_1 @ zone.js:382drainMicroTaskQueue @ zone.js:386ZoneTask.invoke @ zone.js:308
13system.src.js:373 Assertion failed: loading or loaded(anonymous function) @ system.src.js:373ZoneDelegate.invoke @ zone.js:203Zone.run @ zone.js:96(anonymous function) @ zone.js:462ZoneDelegate.invokeTask @ zone.js:236Zone.runTask @ zone.js:136drainMicroTaskQueue @ zone.js:368ZoneTask.invoke @ zone.js:308
Despite reading various threads with similar issues, I haven't been able to pinpoint the cause of this problem. Any insights would be greatly appreciated!