【发布时间】:2017-05-02 17:39:19
【问题描述】:
我遵循了 VS2015 的 this 指南。当我在谷歌浏览器上运行“快速启动”项目或“英雄之旅”教程时,无法正常工作。 (Angular_QuickStart_Error.png)。我研究了 stackoverflow 的帖子,但每个人对错误的理解都不同。
例如:
- Angular 2 Quickstart: unexpected token <
- Angular 2 Quick Start VS 2015 with ES6
- "Unexpected token export" in Angular app with SystemJS and TypeScript
- Kendo UI Angular : (SystemJS) Unexpected token <
他们没有回答我。
我能做什么?
【问题讨论】:
-
如果你使用 SystemJS 和 plugin-typescript,你应该使用
"module": "system"。 -
@AluanHaddad 这里 tsconfig.json: { "compilerOptions": { "target": "es5", "module": "commonjs", "moduleResolution": "node", "sourceMap": true , "emitDecoratorMetadata": true, "experimentalDecorators": true, "lib": [ "es2015", "dom" ], "noImplicitAny": true, "suppressImplicitAnyIndexErrors": true } } 我试过你说的。我写了system而不是commonjs,但它不起作用。
-
你能把这个添加到你的问题中吗?
标签: html angular google-chrome typescript visual-studio-2015