2017-10-18 75 views
0

由於Angular材料已更新,因此在嘗試構建/運行我的項目時,我只有錯誤。這些錯誤全部駐留在節點模塊下的@ angular/material中。角材料版本2.0.0-beta.10工作得很好,然後它被更新,現在沒有任何工作。節點模塊中的角度材料構建錯誤

我已經修復了需要將導入和實現從Md更改爲Mat(例如MdToolbarModule更改爲MatToolbarModule)的錯誤,該錯誤修復了Visual Studio中實際出現的錯誤,但現在構建所有這些錯誤。

ERROR in C:/Users/lajos/Source/Repos/Appraiser/SafeAtHome/node_modules/@angular/material/menu/typings/menu-item.d.ts (20,42): Type '(new (...args: any[]) => CanDisable) & typeof MatMenuItemBase' is not a constructor function type. 
ERROR in C:/Users/lajos/Source/Repos/Appraiser/SafeAtHome/node_modules/@angular/material/core/typings/option/optgroup.d.ts (9,22): Class 'MatOptgroup' incorrectly implements interface 'CanDisable' Property 'disabled' is missing in type 'MatOptgroup'. 
ERROR in C:/Users/lajos/Source/Repos/Appraiser/SafeAtHome/node_modules/@angular/material/button/typings/button.d.ts (55,22): Class 'MatButton' incorrectly implements interface 'CanColor'. Property 'color' is missing in type 'MatButton'. 
ERROR in C:/Users/lajos/Source/Repos/Appraiser/SafeAtHome/node_modules/@angular/material/button/typings/button.d.ts (55,22): Class 'MatButton' incorrectly implements interface 'CanDisable'. Property 'disabled' is missing in type 'MatButton'. 
ERROR in C:/Users/lajos/Source/Repos/Appraiser/SafeAtHome/node_modules/@angular/material/button/typings/button.d.ts (55,22): Class 'MatButton' incorrectly implements interface 'CanDisableRipple' Property 'disableRipple' is missing in type 'MatButton'. 
ERROR in C:/Users/lajos/Source/Repos/Appraiser/SafeAtHome/node_modules/@angular/material/button/typings/button.d.ts (55,40): Type '(new (...args: any[]) => CanColor) & (new (...args: any[]) => CanDisable) & (new (...args: any[])...' is not a constructor function type. 
ERROR in C:/Users/lajos/Source/Repos/Appraiser/SafeAtHome/node_modules/@angular/material/button-toggle/typings/button-toggle.d.ts (33,22): Class 'MatButtonToggleGroup' incorrectly implements interface 'CanDisable'. Property 'disabled' is missing in type 'MatButtonToggleGroup'. 
ERROR in C:/Users/lajos/Source/Repos/Appraiser/SafeAtHome/node_modules/@angular/material/button-toggle/typings/button-toggle.d.ts (33,51): Type '(new (...args: any[]) => CanDisable) & typeof MatButtonToggleGroupBase' is not a constructor function type. 
ERROR in C:/Users/lajos/Source/Repos/Appraiser/SafeAtHome/node_modules/@angular/material/button-toggle/typings/button-toggle.d.ts (92,22): Class 'MatButtonToggleGroupMultiple' incorrectly implements interface 'CanDisable'. Property 'disabled' is missing in type 'MatButtonToggleGroupMultiple'. 
ERROR in C:/Users/lajos/Source/Repos/Appraiser/SafeAtHome/node_modules/@angular/material/button-toggle/typings/button-toggle.d.ts (92,59): Type '(new (...args: any[]) => CanDisable) & typeof MatButtonToggleGroupBase' is not a constructor function type. 
ERROR in C:/Users/lajos/Source/Repos/Appraiser/SafeAtHome/node_modules/@angular/material/checkbox/typings/checkbox.d.ts (47,22): Class 'MatCheckbox' incorrectly implements interface 'CanColor'. Property 'color' is missing in type 'MatCheckbox'. 
ERROR in C:/Users/lajos/Source/Repos/Appraiser/SafeAtHome/node_modules/@angular/material/checkbox/typings/checkbox.d.ts (47,22): Class 'MatCheckbox' incorrectly implements interface 'CanDisable'. Property 'disabled' is missing in type 'MatCheckbox'. 
ERROR in C:/Users/lajos/Source/Repos/Appraiser/SafeAtHome/node_modules/@angular/material/checkbox/typings/checkbox.d.ts (47,22): Class 'MatCheckbox' incorrectly implements interface 'CanDisableRipple'. Property 'disableRipple' is missing in type 'MatCheckbox'. 
ERROR in C:/Users/lajos/Source/Repos/Appraiser/SafeAtHome/node_modules/@angular/material/checkbox/typings/checkbox.d.ts (47,22): Class 'MatCheckbox' incorrectly implements interface 'HasTabIndex'. Property 'tabIndex' is missing in type 'MatCheckbox'. 
ERROR in C:/Users/lajos/Source/Repos/Appraiser/SafeAtHome/node_modules/@angular/material/checkbox/typings/checkbox.d.ts (47,42): Type '(new (...args: any[]) => HasTabIndex) & (new (...args: any[]) => CanColor) & (new (...args: any[]...' is not a constructor function type. 
ERROR in C:/Users/lajos/Source/Repos/Appraiser/SafeAtHome/node_modules/@angular/material/chips/typings/chip.d.ts (38,22): Class 'MatChip' incorrectly implements interface 'CanColor'. Property 'color' is missing in type 'MatChip'. 
ERROR in C:/Users/lajos/Source/Repos/Appraiser/SafeAtHome/node_modules/@angular/material/chips/typings/chip.d.ts (38,22): Class 'MatChip' incorrectly implements interface 'CanDisable' Property 'disabled' is missing in type 'MatChip'. 
ERROR in C:/Users/lajos/Source/Repos/Appraiser/SafeAtHome/node_modules/@angular/material/chips/typings/chip.d.ts (38,38): Type '(new (...args: any[]) => CanColor) & (new (...args: any[]) => CanDisable) & typeof MatChipBase' is not a constructor function type. 
ERROR in C:/Users/lajos/Source/Repos/Appraiser/SafeAtHome/node_modules/@angular/material/expansion/typings/expansion-panel.d.ts (24,22): Class 'MatExpansionPanel' incorrectly implements interface 'CanDisable'. Property 'disabled' is missing in type 'MatExpansionPanel'. 
ERROR in C:/Users/lajos/Source/Repos/Appraiser/SafeAtHome/node_modules/@angular/material/expansion/typings/expansion-panel.d.ts (24,48): Type '(new (...args: any[]) => CanDisable) & typeof MatExpansionPanelBase' is not a constructor function type. 
ERROR in C:/Users/lajos/Source/Repos/Appraiser/SafeAtHome/node_modules/@angular/material/icon/typings/icon.d.ts (38,22): Class 'MatIcon' incorrectly implements interface 'CanColor'. Property 'color' is missing in type 'MatIcon'. 
ERROR in C:/Users/lajos/Source/Repos/Appraiser/SafeAtHome/node_modules/@angular/material/icon/typings/icon.d.ts (38,38): Type '(new (...args: any[]) => CanColor) & typeof MatIconBase' is not a constructor function type. 
ERROR in C:/Users/lajos/Source/Repos/Appraiser/SafeAtHome/node_modules/@angular/material/list/typings/list.d.ts (22,22): Class 'MatList' incorrectly implements interface 'CanDisableRipple'. Property 'disableRipple' is missing in type 'MatList'. 
ERROR in C:/Users/lajos/Source/Repos/Appraiser/SafeAtHome/node_modules/@angular/material/list/typings/list.d.ts (22,38): Type '(new (...args: any[]) => CanDisableRipple) & typeof MatListBase' is not a constructor function type. 
ERROR in C:/Users/lajos/Source/Repos/Appraiser/SafeAtHome/node_modules/@angular/material/list/typings/list.d.ts (61,22): Class 'MatListItem' incorrectly implements interface 'CanDisableRipple'. Property 'disableRipple' is missing in type 'MatListItem'. 
ERROR in C:/Users/lajos/Source/Repos/Appraiser/SafeAtHome/node_modules/@angular/material/list/typings/list.d.ts (61,42): Type '(new (...args: any[]) => CanDisableRipple) & typeof MatListItemBase' is not a constructor function type. 
ERROR in C:/Users/lajos/Source/Repos/Appraiser/SafeAtHome/node_modules/@angular/material/list/typings/selection-list.d.ts (29,22): Class 'MatListOption' incorrectly implements interface 'CanDisableRipple'. Property 'disableRipple' is missing in type 'MatListOption'. 
ERROR in C:/Users/lajos/Source/Repos/Appraiser/SafeAtHome/node_modules/@angular/material/list/typings/selection-list.d.ts (29,44): Type '(new (...args: any[]) => CanDisableRipple) & typeof MatListOptionBase' is not a constructor function type. 
ERROR in C:/Users/lajos/Source/Repos/Appraiser/SafeAtHome/node_modules/@angular/material/list/typings/selection-list.d.ts (70,22): Class 'MatSelectionList' incorrectly implements interface 'CanDisable'. Property 'disabled' is missing in type 'MatSelectionList'. 
ERROR in C:/Users/lajos/Source/Repos/Appraiser/SafeAtHome/node_modules/@angular/material/list/typings/selection-list.d.ts (70,22): Class 'MatSelectionList' incorrectly implements interface 'CanDisableRipple'. Property 'disableRipple' is missing in type 'MatSelectionList'. 
ERROR in C:/Users/lajos/Source/Repos/Appraiser/SafeAtHome/node_modules/@angular/material/list/typings/selection-list.d.ts (70,22): Class 'MatSelectionList' incorrectly implements interface 'HasTabIndex'. Property 'tabIndex' is missing in type 'MatSelectionList'. 
ERROR in C:/Users/lajos/Source/Repos/Appraiser/SafeAtHome/node_modules/@angular/material/list/typings/selection-list.d.ts (70,47): Type '(new (...args: any[]) => HasTabIndex) & (new (...args: any[]) => CanDisableRipple) & (new (...arg...' is not a constructor function type. 
ERROR in C:/Users/lajos/Source/Repos/Appraiser/SafeAtHome/node_modules/@angular/material/menu/typings/menu-item.d.ts (20,22): Class 'MatMenuItem' incorrectly implements interface 'CanDisable'. Property 'disabled' is missing in type 'MatMenuItem'. 
ERROR in C:/Users/lajos/Source/Repos/Appraiser/SafeAtHome/node_modules/@angular/material/core/typings/option/optgroup.d.ts (9,42): Type '(new (...args: any[]) => CanDisable) & typeof MatOptgroupBase' is not a constructor function type. 
ERROR in C:/Users/lajos/Source/Repos/Appraiser/SafeAtHome/node_modules/@angular/material/progress-spinner/typings/progress-spinner.d.ts (23,22): Class 'MatProgressSpinner' incorrectly implements interface 'CanColor'. Property 'color' is missing in type 'MatProgressSpinner'. 
ERROR in C:/Users/lajos/Source/Repos/Appraiser/SafeAtHome/node_modules/@angular/material/progress-spinner/typings/progress-spinner.d.ts (23,49): Type '(new (...args: any[]) => CanColor) & typeof MatProgressSpinnerBase' is not a constructor function type. 
ERROR in C:/Users/lajos/Source/Repos/Appraiser/SafeAtHome/node_modules/@angular/material/radio/typings/radio.d.ts (33,44): Type '(new (...args: any[]) => CanDisable) & typeof MatRadioGroupBase' is not a constructor function type. 
ERROR in C:/Users/lajos/Source/Repos/Appraiser/SafeAtHome/node_modules/@angular/material/radio/typings/radio.d.ts (137,22): Class 'MatRadioButton' incorrectly implements interface 'CanColor'. Property 'color' is missing in type 'MatRadioButton'. 
ERROR in C:/Users/lajos/Source/Repos/Appraiser/SafeAtHome/node_modules/@angular/material/radio/typings/radio.d.ts (137,22): Class 'MatRadioButton' incorrectly implements interface 'CanDisableRipple'. Property 'disableRipple' is missing in type 'MatRadioButton'. 
ERROR in C:/Users/lajos/Source/Repos/Appraiser/SafeAtHome/node_modules/@angular/material/radio/typings/radio.d.ts (137,45): Type '(new (...args: any[]) => CanColor) & (new (...args: any[]) => CanDisableRipple) & typeof MatRadio...' is not a constructor function type. 
ERROR in C:/Users/lajos/Source/Repos/Appraiser/SafeAtHome/node_modules/@angular/material/select/typings/select.d.ts (73,22): Class 'MatSelect' incorrectly implements interface 'CanDisable'. Property 'disabled' is missing in type 'MatSelect'. 
ERROR in C:/Users/lajos/Source/Repos/Appraiser/SafeAtHome/node_modules/@angular/material/select/typings/select.d.ts (73,22): Class 'MatSelect' incorrectly implements interface 'HasTabIndex'. Property 'tabIndex' is missing in type 'MatSelect'. 
ERROR in C:/Users/lajos/Source/Repos/Appraiser/SafeAtHome/node_modules/@angular/material/select/typings/select.d.ts (73,22): Class 'MatSelect' incorrectly implements interface 'MatFormFieldControl<any>'. Property 'disabled' is missing in type 'MatSelect'. 
ERROR in C:/Users/lajos/Source/Repos/Appraiser/SafeAtHome/node_modules/@angular/material/select/typings/select.d.ts (73,40): Type '(new (...args: any[]) => HasTabIndex) & (new (...args: any[]) => CanDisable) & typeof MatSelectBase' is not a constructor function type. 
ERROR in C:/Users/lajos/Source/Repos/Appraiser/SafeAtHome/node_modules/@angular/material/slide-toggle/typings/slide-toggle.d.ts (27,22): Class 'MatSlideToggle' incorrectly implements interface 'CanColor'. Property 'color' is missing in type 'MatSlideToggle'. 
ERROR in C:/Users/lajos/Source/Repos/Appraiser/SafeAtHome/node_modules/@angular/material/slide-toggle/typings/slide-toggle.d.ts (27,22): Class 'MatSlideToggle' incorrectly implements interface 'CanDisable'. Property 'disabled' is missing in type 'MatSlideToggle'. 
ERROR in C:/Users/lajos/Source/Repos/Appraiser/SafeAtHome/node_modules/@angular/material/slide-toggle/typings/slide-toggle.d.ts (27,22): Class 'MatSlideToggle' incorrectly implements interface 'CanDisableRipple'. Property 'disableRipple' is missing in type 'MatSlideToggle'. 
ERROR in C:/Users/lajos/Source/Repos/Appraiser/SafeAtHome/node_modules/@angular/material/slide-toggle/typings/slide-toggle.d.ts (27,22): Class 'MatSlideToggle' incorrectly implements interface 'HasTabIndex'. Property 'tabIndex' is missing in type 'MatSlideToggle'. 
ERROR in C:/Users/lajos/Source/Repos/Appraiser/SafeAtHome/node_modules/@angular/material/slide-toggle/typings/slide-toggle.d.ts (27,45): Type '(new (...args: any[]) => HasTabIndex) & (new (...args: any[]) => CanColor) & (new (...args: any[]...' is not a constructor function type. 
ERROR in C:/Users/lajos/Source/Repos/Appraiser/SafeAtHome/node_modules/@angular/material/slider/typings/slider.d.ts (36,22): Class 'MatSlider' incorrectly implements interface 'CanColor'. Property 'color' is missing in type 'MatSlider'. 
ERROR in C:/Users/lajos/Source/Repos/Appraiser/SafeAtHome/node_modules/@angular/material/slider/typings/slider.d.ts (36,22): Class 'MatSlider' incorrectly implements interface 'CanDisable'. Property 'disabled' is missing in type 'MatSlider'. 
ERROR in C:/Users/lajos/Source/Repos/Appraiser/SafeAtHome/node_modules/@angular/material/slider/typings/slider.d.ts (36,40): Type '(new (...args: any[]) => CanColor) & (new (...args: any[]) => CanDisable) & typeof MatSliderBase' is not a constructor function type. 
ERROR in C:/Users/lajos/Source/Repos/Appraiser/SafeAtHome/node_modules/@angular/material/tabs/typings/tab.d.ts (17,22): Class 'MatTab' incorrectly implements interface 'CanDisable'. Property 'disabled' is missing in type 'MatTab'. 
ERROR in C:/Users/lajos/Source/Repos/Appraiser/SafeAtHome/node_modules/@angular/material/tabs/typings/tab.d.ts (17,37): Type '(new (...args: any[]) => CanDisable) & typeof MatTabBase' is not a constructor function type. 
ERROR in C:/Users/lajos/Source/Repos/Appraiser/SafeAtHome/node_modules/@angular/material/tabs/typings/tab-group.d.ts (30,22): Class 'MatTabGroup' incorrectly implements interface 'CanColor'. Property 'color' is missing in type 'MatTabGroup'. 
ERROR in C:/Users/lajos/Source/Repos/Appraiser/SafeAtHome/node_modules/@angular/material/tabs/typings/tab-group.d.ts (30,22): Class 'MatTabGroup' incorrectly implements interface 'CanDisableRipple'. Property 'disableRipple' is missing in type 'MatTabGroup'. 
ERROR in C:/Users/lajos/Source/Repos/Appraiser/SafeAtHome/node_modules/@angular/material/tabs/typings/tab-group.d.ts (30,42): Type '(new (...args: any[]) => CanColor) & (new (...args: any[]) => CanDisableRipple) & typeof MatTabGr...' is not a constructor function type. 
ERROR in C:/Users/lajos/Source/Repos/Appraiser/SafeAtHome/node_modules/@angular/material/tabs/typings/tab-label-wrapper.d.ts (18,22): Class 'MatTabLabelWrapper' incorrectly implements interface 'CanDisable'. Property 'disabled' is missing in type 'MatTabLabelWrapper'. 
ERROR in C:/Users/lajos/Source/Repos/Appraiser/SafeAtHome/node_modules/@angular/material/tabs/typings/tab-label-wrapper.d.ts (18,49): Type '(new (...args: any[]) => CanDisable) & typeof MatTabLabelWrapperBase' is not a constructor function type. 
ERROR in C:/Users/lajos/Source/Repos/Appraiser/SafeAtHome/node_modules/@angular/material/tabs/typings/tab-header.d.ts (31,22): Class 'MatTabHeader' incorrectly implements interface 'CanDisableRipple'. Property 'disableRipple' is missing in type 'MatTabHeader'. 
ERROR in C:/Users/lajos/Source/Repos/Appraiser/SafeAtHome/node_modules/@angular/material/tabs/typings/tab-header.d.ts (31,43): Type '(new (...args: any[]) => CanDisableRipple) & typeof MatTabHeaderBase' is not a constructor function type. 
ERROR in C:/Users/lajos/Source/Repos/Appraiser/SafeAtHome/node_modules/@angular/material/tabs/typings/tab-nav-bar/tab-nav-bar.d.ts (25,22): Class 'MatTabNav' incorrectly implements interface 'CanColor'. Property 'color' is missing in type 'MatTabNav'. 
ERROR in C:/Users/lajos/Source/Repos/Appraiser/SafeAtHome/node_modules/@angular/material/tabs/typings/tab-nav-bar/tab-nav-bar.d.ts (25,40): Type '(new (...args: any[]) => CanDisableRipple) & (new (...args: any[]) => CanColor) & typeof MatTabNa...' is not a constructor function type. 
ERROR in C:/Users/lajos/Source/Repos/Appraiser/SafeAtHome/node_modules/@angular/material/tabs/typings/tab-nav-bar/tab-nav-bar.d.ts (61,22): Class 'MatTabLink' incorrectly implements interface 'CanDisable'. Property 'disabled' is missing in type 'MatTabLink'. 
ERROR in C:/Users/lajos/Source/Repos/Appraiser/SafeAtHome/node_modules/@angular/material/tabs/typings/tab-nav-bar/tab-nav-bar.d.ts (61,41): Type '(new (...args: any[]) => CanDisable) & typeof MatTabLinkBase' is not a constructor function type. 
ERROR in C:/Users/lajos/Source/Repos/Appraiser/SafeAtHome/node_modules/@angular/material/toolbar/typings/toolbar.d.ts (19,22): Class 'MatToolbar' incorrectly implements interface 'CanColor'. Property 'color' is missing in type 'MatToolbar'. 
ERROR in C:/Users/lajos/Source/Repos/Appraiser/SafeAtHome/node_modules/@angular/material/toolbar/typings/toolbar.d.ts (19,41): Type '(new (...args: any[]) => CanColor) & typeof MatToolbarBase' is not a constructor function type. 
+0

你有沒有試過清除node_modules文件夾,做一個新的NPM安裝? –

+0

是的,這也是執行,然後存在相同的錯誤。 @RoughChop –

回答

0

的問題已經解決了,我需要更新我的打字稿封裝,可安裝由角/材料所需的要求