有人知道导致此构建错误的原因吗?
ERROR in /Users/bv/Documents/GDPTAngular/gdpt/node_modules/@angular/compiler/src/compile_metadata.d.ts (8,109): Module '"/Users/bv/Documents/GDPTAngular/gdpt/node_modules/@angular/core/core"' has no exported member 'ɵLifecycleHooks'.
ERROR in /Users/bv/Documents/GDPTAngular/gdpt/node_modules/@angular/compiler/src/template_parser/template_ast.d.ts (8,27): Module '"/Users/bv/Documents/GDPTAngular/gdpt/node_modules/@angular/core/core"' has no exported member 'ɵLifecycleHooks'.
ERROR in /Users/bv/Documents/GDPTAngular/gdpt/node_modules/@angular/compiler/src/directive_resolver.d.ts (8,27): Module '"/Users/bv/Documents/GDPTAngular/gdpt/node_modules/@angular/core/core"' has no exported member 'ɵReflectorReader'.
ERROR in /Users/bv/Documents/GDPTAngular/gdpt/node_modules/@angular/compiler/src/ng_module_resolver.d.ts (8,26): Module '"/Users/bv/Documents/GDPTAngular/gdpt/node_modules/@angular/core/core"' has no exported member 'ɵReflectorReader'.
ERROR in /Users/bv/Documents/GDPTAngular/gdpt/node_modules/@angular/compiler/src/pipe_resolver.d.ts (8,22): Module '"/Users/bv/Documents/GDPTAngular/gdpt/node_modules/@angular/core/core"' has no exported member 'ɵReflectorReader'.
ERROR in /Users/bv/Documents/GDPTAngular/gdpt/node_modules/@angular/compiler/src/metadata_resolver.d.ts (8,75): Module '"/Users/bv/Documents/GDPTAngular/gdpt/node_modules/@angular/core/core"' has no exported member 'ɵReflectorReader'.
ERROR in /Users/bv/Documents/GDPTAngular/gdpt/node_modules/@angular/compiler/src/aot/static_reflector.d.ts (8,10): Module '"/Users/bv/Documents/GDPTAngular/gdpt/node_modules/@angular/core/core"' has no exported member 'ɵReflectorReader'.
答案 0 :(得分:3)
我有这个错误。更新你的package.json
"@angular/common": "4.1.3",
"@angular/compiler": "4.1.3",
"@angular/compiler-cli": "4.1.3",
"@angular/core": "4.1.3",
和npm install。
答案 1 :(得分:1)
当我将angular-cli更新到版本1.3.0时,发生了这种情况,@ erus解决方案解决了我的问题。
以防万一,删除你的node_modules文件夹并进行全新的“npm install”。
答案 2 :(得分:0)
得到完全相同的错误消息。我的构建问题表现在码头(docker registry)。问题是角度核心包中的破折号(^)。删除破折号后,错误消失,构建完成。