2017-07-19 44 views
2

有人知道是什麼原因造成這個構建錯誤?角度構建錯誤「..沒有導出成員」ɵRelectorReader「。」

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

您可以告訴我們您所做的更改是否觸發了此錯誤? – Dhyey

+0

它看起來像試圖從'@ angular/core/core'加載資源而不是'@ angular/core'。我們需要更多信息。你的進口報表是什麼樣的?你使用的是webpack嗎? – LLai

+0

這個問題解決了嗎?我有同樣的問題。我應該提出一個新的問題,因爲這個線程似乎已經死亡? – larslars

回答

2

我有這個錯誤。更新你的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

這發生在我身上時,我更新了我的angular-cli到版本1.3.0,@horus解決方案解決了我的問題。

爲了以防萬一,請刪除您的node_modules文件夾並執行全新的「npm install」。

+0

謝謝噶,npm install固定它。 –

相關問題