Angular 构建错误 "..has no exported member ' ɵReflectorReader'。”

标签 angular nodemon

有人知道导致此构建错误的原因吗?

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/

相关文章:

angular - routerLink 正在渲染 %23,而不是#

angular - 如何在 Angular 2+ 应用程序中使用 Azure 媒体服务

node.js - Nodemon 应用程序无法运行

node.js - Nodemon 和 Jest,仅在异步运行 Babel 时支持

javascript - 从主机编辑文件时,VM 中的 Nodemon 看不到更改

json - 使用 Typescript 并出现 Node.js 错误

javascript - Nodemon -w 保持启动,但不运行服务器

unit-testing - 使用 DI 进行单元测试和模拟服务

angular - 如何在指令中使用 ng-content

c# - 使用 Angular : Unexpected token P in JSON at position 0 at JSON. 解析下载 .xls 文件(<匿名>)