通过文档页面上的AOT教程去后,我试图编译角2 AOT和我收到以下错误角AOT在编译失败(一些具有角/编译器,CLI)
"node_modules/.bin/ngc" -p tsconfig-aot.json
TypeError: compiler.AnimationParser is not a constructor
at Function.CodeGenerator.create (C:\Projects\NeilKellyClient4\node_modules\@angular\compiler-cli\src\codegen.js:108:400)
at codegen (C:\Projects\NeilKellyClient4\node_modules\@angular\compiler-cli\src\main.js:7:36)
at Object.main (C:\Projects\NeilKellyClient4\node_modules\@angular\tsc-wrapped\src\main.js:37:16)
at Object.<anonymous> (C:\Projects\NeilKellyClient4\node_modules\@angular\compiler-cli\src\main.js:16:9)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.runMain (module.js:604:10)
Compilation failed
我我在这一点上陷入困境。为什么angular/compiler-cli会抛出这个错误?
我看到别人谁也有类似的错误,并从降级的2.2.1编译器CLI - > 2.1.0。我做了同样的事情,但现在我得到这个错误TypeError:无法读取对象的未定义 属性'AssetUrl'。' –