XHR错误(未找到404)systemjs-angular-loader.js

时间:2017-08-16 20:42:55

标签: node.js angular typescript npm

我最近不得不迁移到新的开发机器(Windows 7> windows 10)。 我在两台机器上使用VS 2017,FWIW。

无论如何,当我在新机器上运行这个Angular项目时,我得到以下结果:

/CableComplete/systemjs-angular-loader.js Failed to load resource: the server responded with a status of 404 (Not Found)
zone.js:391 Error: (SystemJS) XHR error (404 Not Found) loading http://localhost/CableComplete/systemjs-angular-loader.js
    Error: XHR error (404 Not Found) loading http://localhost/CableComplete/systemjs-angular-loader.js
        at XMLHttpRequest.wrapFn [as __zone_symbol___onreadystatechange] (http://localhost/CableComplete/CableCompleteCli/node_modules/zone.js/dist/zone.js:1075:39)
        at ZoneDelegate.invokeTask (http://localhost/CableComplete/CableCompleteCli/node_modules/zone.js/dist/zone.js:424:31)
        at Zone.runTask (http://localhost/CableComplete/CableCompleteCli/node_modules/zone.js/dist/zone.js:191:47)
        at ZoneTask.invokeTask [as invoke] (http://localhost/CableComplete/CableCompleteCli/node_modules/zone.js/dist/zone.js:498:34)
        at invokeTask (http://localhost/CableComplete/CableCompleteCli/node_modules/zone.js/dist/zone.js:1370:14)
        at XMLHttpRequest.globalZoneAwareCallback (http://localhost/CableComplete/CableCompleteCli/node_modules/zone.js/dist/zone.js:1388:17)
    Error loading http://localhost/CableComplete/systemjs-angular-loader.js
    Error loading http://localhost/CableComplete/CableCompleteCli/src/main.js
        at XMLHttpRequest.wrapFn [as __zone_symbol___onreadystatechange] (http://localhost/CableComplete/CableCompleteCli/node_modules/zone.js/dist/zone.js:1075:39)
        at ZoneDelegate.invokeTask (http://localhost/CableComplete/CableCompleteCli/node_modules/zone.js/dist/zone.js:424:31)
        at Zone.runTask (http://localhost/CableComplete/CableCompleteCli/node_modules/zone.js/dist/zone.js:191:47)
        at ZoneTask.invokeTask [as invoke] (http://localhost/CableComplete/CableCompleteCli/node_modules/zone.js/dist/zone.js:498:34)
        at invokeTask (http://localhost/CableComplete/CableCompleteCli/node_modules/zone.js/dist/zone.js:1370:14)
        at XMLHttpRequest.globalZoneAwareCallback (http://localhost/CableComplete/CableCompleteCli/node_modules/zone.js/dist/zone.js:1388:17)
    Error loading http://localhost/CableComplete/systemjs-angular-loader.js
    Error loading http://localhost/CableComplete/CableCompleteCli/src/main.js

我不确定从一台机器到另一台机器的过渡到底出了什么问题...但是这个项目在另一台机器上的localhost中运行良好。

我检查了与此问题相关的SO中的其他一些解决方案 - 但它们都不起作用,因为两台机器上的项目是相同的 - 没有任何改变。

也许通过npm包裹有问题?我必须将所有软件包下载到新机器上。

有什么想法吗?

0 个答案:

没有答案