Angular2 - 无法运行应用程序。抛出错误

时间:2015-12-19 17:10:38

标签: angular

我正在尝试使用我的本地系统运行angular2。我收到错误

Live reload enabled.
system.src.js:4703 GET http://127.0.0.1:8080/angular2/angualr2.js 404 (Not Found)A @ system.src.js:4703(anonymous function) @ system.src.js:4703(anonymous function) @ system.src.js:4703(anonymous function) @ system.src.js:4703(anonymous function) @ system.src.js:4703(anonymous function) @ system.src.js:4703(anonymous function) @ system.src.js:4703(anonymous function) @ system.src.js:4703(anonymous function) @ system.src.js:4703(anonymous function) @ system.src.js:4703
system.js:4 Uncaught (in promise) Error: XHR error (404 Not Found) loading http://127.0.0.1:8080/angular2/angualr2.js(…)t @ system.src.js:4703g @ system.src.js:4703(anonymous function) @ system.src.js:4703

但我不知道如何解决这个问题。有人帮我吗?

如果您需要其他信息来提供帮助,请与我们联系。 提前致谢

我也从ts文件收到错误:

D:\Projects\angular2-seed>tsc --watch app.ts
app.ts(3,1): error TS1148: Cannot compile external modules unless the '--module'
 flag is provided.
app.ts(3,44): error TS2307: Cannot find external module 'angular2/angualr2'.
app.ts(5,1): error TS1205: Decorators are only available when targeting ECMAScri
pt 5 and higher.
message TS6042: Compilation complete. Watching for file changes.

我希望它能提供一些更好的想法来预测我的问题。

0 个答案:

没有答案