【问题标题】:Angular QuickStart project did not work correctly((SystemJS) Unexpected token <)Angular QuickStart 项目无法正常工作((SystemJS) Unexpected token <)
【发布时间】:2017-05-02 17:39:19
【问题描述】:

我遵循了 VS2015 的 this 指南。当我在谷歌浏览器上运行“快速启动”项目或“英雄之旅”教程时,无法正常工作。 (Angular_QuickStart_Error.png)。我研究了 stackoverflow 的帖子,但每个人对错误的理解都不同。

例如:

他们没有回答我。

我能做什么?

【问题讨论】:

  • 如果你使用 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


【解决方案1】:

我找到了另一种解决方案。关注link 并创建新的 Angular cli 项目。

【讨论】:

    猜你喜欢
    • 2016-03-23
    • 2020-08-21
    • 1970-01-01
    • 2017-02-09
    • 1970-01-01
    • 2017-10-12
    • 1970-01-01
    • 2021-10-03
    • 1970-01-01
    相关资源
    最近更新 更多