Sunday, February 24, 2019

Module not found: Error: Can't resolve '@angular/material'

Hi Guys ,

Today I have faced this error :

Module not found: Error: Can't resolve '@angular/material'


I faced this error since i didn't installed material module. Here's the solution if you face the same  issue.
Go to the command prompt and type the following command:

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

Once installed ng serve,it should work.

Generally we get Module not found error means a module is missing . So we need to install the missing module in node js through npm tool.
After the module is installed verify the path ../node_modules there should be a folder created like this.
@angular\material
The app should be restarted .






No comments:

Post a Comment

ec2-user@ec2 Permission denied