angular 4 次 awesome-typescript-loader 编译失败

angular 4 compile failed for awesome-typescript-loader

我将当前的 angular 2 项目更新为 angular 4,现在出现了这些错误:

Module build failed: TypeError: Cannot read property 'exclude' of undefined
at applyDefaults (/Users/frankhe/jnpr_csc/node_modules/awesome-typescript-loader/src/instance.ts:266:72)

包 json 是:

 "@angular/animations": "^4.0.1",
        "@angular/common": "^4.0.1",
        "@angular/compiler": "^4.0.1",
        "@angular/compiler-cli": "^4.0.1
    "angular2-load-children-loader": "^0.1.3",
        "angular2-template-loader": "^0.4.0",
"typescript": "^2.0.3",
        "awesome-typescript-loader": "^2.2.4",
        "css-loader": "^0.23.1",
        "es6-promise-loader": "^1.0.1",

我的 tsconfig 是

{
  "compilerOptions": {
    "target": "es5",
    "module": "commonjs",
    "moduleResolution": "node",
    "sourceMap": true,
    "emitDecoratorMetadata": true,
    "experimentalDecorators": true,
    "removeComments": false,
    "noImplicitAny": false,
    "suppressImplicitAnyIndexErrors": true
  }
}

知道编译失败的原因吗?

谢谢

这是某些版本的 Typescript 和 Awesome-Typescript-Loader 的依赖性问题。它应该与

一起工作
"typescript": "^2.1.4" 
"awesome-typescript-loader": "^3.0.0-beta.9"

尝试更新您对打字稿/ATL 的依赖关系

更多信息:https://github.com/s-panferov/awesome-typescript-loader/issues/190