AngularCLI and Angular Material (schematics) error: Collection “@angular/material” cannot be resolved

后端 未结 6 1220
眼角桃花
眼角桃花 2021-02-12 17:45

I am trying to use the Angular schemats that are shown on this page. When I try to use this following command in the terminal at the root of the project ng generate @ang

6条回答
  •  灰色年华
    2021-02-12 18:08

    Try the following cmds, It worked for me :

    npm install --save @angular/material@6.2.1 @angular/cdk@6.2.1
    
    ng add @angular/material@6.2.1
    

提交回复
热议问题