can not find module “@angular/material”

前端 未结 7 704
余生分开走
余生分开走 2021-01-31 02:47

I\'m using Angular 2. When I\'m trying to import \"@angular/material\" i\'m getting error for this. I\'m importing packages like:

import {MdDialog} from \"@angul         


        
相关标签:
7条回答
  • That's what solved this problem for me.

    I used:

    npm install --save @angular/material @angular/cdk
    npm install --save @angular/animations
    

    but INSIDE THE APPLICATION'S FOLDER.

    Source: https://medium.com/@ismapro/first-steps-with-angular-cli-and-angular-material-5a90406e9a4

    0 讨论(0)
提交回复
热议问题