角度2 XHR错误加载angularjs文件

时间:2015-12-17 07:35:01

标签: angular

当我在本地使用Hero Editor Tutorial的plunk示例时出现此错误。我的意思是通过本地复制本地文件夹中的每个文件并在浏览器中打开index.html。 (https://angular.io/resources/live-examples/toh-1/ts/plnkr.html

会发生什么?

Error: XHR error loading file:///Users/ksenechal/angular2-quickstart/app/app.component.ts run angular2-polyfills.js:138
Error loading file:///Users/ksenechal/angular2-quickstart/app/app.component.ts as "./app.component" from file:///Users/ksenechal/angular2-quickstart/app/boot.ts
column: 99
line: 4
message: "XHR error loading file:///Users/ksenechal/angular2-quickstart/app/app.component.ts
Error loading file:///Users/ksenechal/angular2-quickstart/app/app.component.ts as \"./app.component\" from file:///Users/ksenechal/angular2-quickstart/app/boot.ts"
sourceURL: "https://code.angularjs.org/tools/system.js"
stack: "o@https://code.angularjs.org/tools/system.js:4:12703↵onreadystatechange@https://code.angularjs.org/tools/system.js:4:13220↵run@https://code.angularjs.org/2.0.0-beta.0/angular2-polyfills.js:138:22↵zoneBoundFn@https://code.angularjs.org/2.0.0-beta.0/angular2-polyfills.js:111:22"
Prototype Error

0 个答案:

没有答案