A new http client was added only in version 4.3 . You are probably using an older version of angular. You need to update the project. Go to package.json and change all @angular/... entries to enable version ^4.3.4 .
In addition, if you are using SystemJS, you need to add two entries to the map :
'tslib': 'npm:tslib/tslib.js', '@angular/common/http': 'npm:@angular/common/bundles/common-http.umd.js',
Also see the difference between HTTP and HTTPClient in angular 4?
source share