Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Module not found: Error: Can't resolve '@angular/flex-layout' in '/app'

I suddenly got this error

Module not found: Error: Can't resolve '@angular/flex-layout' in '\src\app'

This error occurred After I have install @angular/cdk,

After this error I have again installed flex-layout using

 npm install @angular/flex-layout

But now there is error for

Module not found: Error: Can't resolve '@angular/http' in '\src\app'

If I Install a http, then some other module is getting missed. How to stop this situation? What has gone wrong?

If I install @angular/http then again it starts with

Module not found: Error: Can't resolve '@angular/flex-layout' in '\src\app'
like image 210
Talk is Cheap Show me Code Avatar asked Mar 05 '18 15:03

Talk is Cheap Show me Code


1 Answers

Install the below package to avoid this issue.

npm install @angular/flex-layout

OR add the below code in package.json and do the npm install

"@angular/flex-layout":"12.0.0-beta.34"
like image 70
Sathia Avatar answered Sep 27 '22 19:09

Sathia