0
votes

My application had been running fine with the Materials libraries and suddenly now I have build errors. There seems to some mix up between my version of typescript, the CLI version, and the Materials Libraries. I keep going around in circles with this and am still very new to angular so its hard for me to make sense of things when I try to read up on these errors I am getting. The below is the output of my ng--version and ng build commands. Any help or direction offered would be greatly appreciated.

--Jason

enter image description here

Error: node_modules/@angular/material/tabs/tab.d.ts:24:22 - error TS2420: Class 'MatTab' incorrectly implements interface 'CanDisable'. Property 'disabled' is missing in type 'MatTab' but required in type 'CanDisable'.

24 export declare class MatTab extends _MatTabMixinBase implements OnInit, CanDisable, OnChanges, OnDestroy { ~~~~~~

node_modules/@angular/material/core/common-behaviors/disabled.d.ts:12:5 12 disabled: boolean; ~~~~~~~~ 'disabled' is declared here.

Error: node_modules/@angular/material/toolbar/toolbar.d.ts:22:22 - error TS2420: Class 'MatToolbar' incorrectly implements interface 'CanColor'. Type 'MatToolbar' is missing the following properties from type 'CanColor': color, defaultColor

22 export declare class MatToolbar extends _MatToolbarMixinBase implements CanColor, AfterViewInit { ~~~~~~~~~~

Error: node_modules/@angular/material/tree/node.d.ts:17:22 - error TS2420: Class 'MatTreeNode<T, K>' incorrectly implements interface 'CanDisable'. Property 'disabled' is missing in type 'MatTreeNode<T, K>' but required in type 'CanDisable'.

17 export declare class MatTreeNode<T, K = T> extends _MatTreeNodeMixinBase<T, K> implements CanDisable, DoCheck, HasTabIndex, OnInit, OnDestroy { ~~~~~~~~~~~

node_modules/@angular/material/core/common-behaviors/disabled.d.ts:12:5 12 disabled: boolean; ~~~~~~~~ 'disabled' is declared here.

Error: node_modules/@angular/material/tree/node.d.ts:17:22 - error TS2420: Class 'MatTreeNode<T, K>' incorrectly implements interface 'HasTabIndex'. Type 'MatTreeNode<T, K>' is missing the following properties from type 'HasTabIndex': tabIndex, defaultTabIndex

17 export declare class MatTreeNode<T, K = T> extends _MatTreeNodeMixinBase<T, K> implements CanDisable, DoCheck, HasTabIndex, OnInit, OnDestroy { ~~~~~~~~~~~

Error: node_modules/zone.js/dist/zone.js.d.ts:600:21 - error TS2503: Cannot find namespace 'NodeJS'.

600 declare var global: NodeJS.Global; ~~~~~~

please share package.json - Vugar Abdullayev