I have done the Ionic 3
app's internationalization using ngx-translate
.It gave me below error.
I have done that using official doc here.
Cannot find module '@angular/common/http'
I have done the Ionic 3
app's internationalization using ngx-translate
.It gave me below error.
I have done that using official doc here.
Cannot find module '@angular/common/http'
HttpClient
was introduced in Angular 4.3.0, you are using 4.1.3.
In the Angular version you are using you can inject Http
(requires HttpModule
in imports: [...]
of AppModule
), but it has different features and a different API.
The issue was
@angular/common/http
is only available inangular 4.3+
.But onIonic 3
we're usingAngular 4.1.3
.So this is the solution:
I have removed
@ngx-translate/http-loader
And add an older version of it:
You can read more about it on Git