I have updated my angular packages versions as below.
I want to use import {HttpClientModule} from '@angular/common/http'; but I module could not found and even for httpClient also.
See below.
How could I fix this?
In your module.ts
import { HttpModule } from '@angular/http';
import { HttpClientModule } from '@angular/common/http';
It should work
No the actual issue is with the stackblitz itself,
this is a known bug with type definitions in sub-packages, we have a fix coming for it soon. That code will actually work in the preview btw, it's just the red underline is incorrect!
npm update?ncu -u. All the packages updated automatically.