Uncaught TypeError: System.import is not a function

Uncaught TypeError: System.import is not a function

这段代码应该显示包含 Hello World 的 div,但我却收到错误 Uncaught TypeError: System.import is not a function。我正在关注 ng-book2 的入门教程视频,其中包含 index.html 中的以下代码:

<!DOCTYPE html>
<html>
<head>
  <title>Angular 2</title>

  <script src="js/traceur-runtime-0.0.90.js"></script>
  <script src="js/system-0.18.4.js"></script>
  <script src="js/angular2-alpha31.js"></script>
</head>
<body>
  <script>System.import('js/app');</script>
  <hello-world></hello-world>
</body>
</html>

app.ts:

/// <reference path="../lib/node_modules/angular2/angular2.d.ts" />

import {
  Component,
  View,
  bootstrap
} from 'angular2/angular2';

// Annotation section
@Component({
  selector: 'hello-world'
})
@View({
  template: '<div>Hello World</div>'
})
// Component controller
class HelloWorld {

}

bootstrap(HelloWorld);

最后是当前目录结构:

/ng2
  /js
    angular2-alpha31.js
    app.js
    app.js.map
    system-0.18.4.js
    system-0.18.4.js.map
    traceur-runtime-0.0.90.js
  index.html

四处寻找解决方案,only issue that seems similar enough 指出系统的 config.js 存在问题。除了在本教程中,视频显示了此工作,没有任何配置提示。我应该提一下,这是托管在远程服务器上,而不是视频中使用的本地 HTTP 服务器。

开发者截图window:

以上目录结构中显示的每个文件都是在撰写本文时 GitHub 上可用的最新文件。如果我使用的是远程服务器,是否应该包括默认配置文件,或者我是否完全遗漏了其他内容?

Uncaught TypeError: System.import is not a function

说明 js/system-0.18.4.js 加载失败。

进一步研究文件后,我发现 Angular2 正在用自己的对象覆盖 SystemJS 的 System 对象。如果 angular2.js 在 HTML 内移动到 system.js 以上,则语句

<script>System.import('js/app');</script>

使用正确的系统对象。

这不应该发生,但目前这是一个问题。