components icon indicating copy to clipboard operation
components copied to clipboard

Command "npm start" stopped working on quickstart on installing "Material" via command prompt

Open saurabhit49 opened this issue 9 years ago • 6 comments

Bug, feature request, or proposal:

I have downloaded latest "Angular QuickStart (named quickstart-master)" and installed "Latest Material" using "npm install --save @angular/material" after performing "npm install" for Angular 4.

I am receiving the following error.... node_modules/@angular/material/typings/button/button.d.ts(40,22): error TS2420: Class 'MdButton' incorrectly implements interface 'CanDisable'. Property 'disabled' is missing in type 'MdButton'. node_modules/@angular/material/typings/button/button.d.ts(40,39): error TS2507: Type '(new (...args: any[]) => CanDisable) & typeof MdButtonBase' is not a const ructor function type. node_modules/@angular/material/typings/checkbox/checkbox.d.ts(43,22): error TS24 20: Class 'MdCheckbox' incorrectly implements interface 'CanDisable'. Property 'disabled' is missing in type 'MdCheckbox'. node_modules/@angular/material/typings/checkbox/checkbox.d.ts(43,41): error TS25 07: Type '(new (...args: any[]) => CanDisable) & typeof MdCheckboxBase' is not a constructor function type......


If i just replace "node_modules@angular\material" folder with the old copy then everything works fine. So it seems that latest material scripts has some issue or i was missing anything else. I have attached screenshot of full error.

screenshot

saurabhit49 avatar May 23 '17 14:05 saurabhit49

Please see https://github.com/angular/material2/issues/4512. Typescript 2.2 is required

willshowell avatar May 23 '17 14:05 willshowell

What @willshowell said

jelbourn avatar May 23 '17 17:05 jelbourn

I changed to 2.2 and it works.

furcino avatar Jun 13 '17 02:06 furcino

I changed to 2.2 but still it shows the same error error ts

LakshmiTejaYanamandra avatar Jul 07 '17 07:07 LakshmiTejaYanamandra

I had to follow the instructions in the following article: https://stackoverflow.com/questions/43973533/angular-4-with-material

shelwig avatar Jul 09 '17 00:07 shelwig

This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.