首页 文章

节点模块中的角度材料构建错误

提问于
浏览
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.

1 回答

  • 1

    问题已经解决,我需要更新我的typescript包以满足Angular / material所需的要求

相关问题