有人知道导致此构建错误的原因吗?
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'.
最佳答案
我遇到了这个错误。更新您的 package.json
"@angular/common": "4.1.3",
"@angular/compiler": "4.1.3",
"@angular/compiler-cli": "4.1.3",
"@angular/core": "4.1.3",
和 npm 安装。
关于 Angular 构建错误 "..has no exported member ' ɵReflectorReader'。”,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45180306/