Un meet dependency angular common/core

HI

WHEN I ADDED NGX TRANSLATE I AM GETTING AN ERROR
UN MEET PEER DEPENDENCY @angular/common4.3.0
UN MEET PEER DEPENDENCY @angular/core 4.3.0
can any one help on this

THIS IS MY IONIC INFO

cli packages: (/Users/apple/Desktop/peter-work-zone/Ionic3Projects/tutorApp/node_modules)

@ionic/cli-plugin-cordova       : 1.6.2
@ionic/cli-plugin-ionic-angular : 1.4.1
@ionic/cli-utils                : 1.7.0
ionic (Ionic CLI)               : 3.7.0

global packages:

Cordova CLI : 7.0.1 

local packages:

@ionic/app-scripts : 1.3.12
Cordova Platforms  : android 6.2.3
Ionic Framework    : ionic-angular 3.6.0

System:

Node       : v6.9.1
OS         : macOS Sierra
Xcode      : Xcode 8.2.1 Build version 8C1002 
ios-deploy : 1.9.0 
ios-sim    : 5.0.11 
npm        : 4.2.0

I don’t think this is ngx-translate’s fault, but rather something else that is wanting a newer version of Angular than Ionic is comfortable with.

Hi raoropos,
thanks for your reply
can you please tell me how to solve this problem

That’s a warning, not an error. Does your project build?

Hi,
I am currently having the same issue.
The latest version of ngx-translate/http-loader requires Angular >=4.3.0 . This version contains an important change of the HttpModule from @angular/http, which became HttpClientModule from @angular/common/http (and also Http needs to be replaced with HttpClient).
The latest versino of Ionic requires an earlier version of Angular (namely 4.1.3), which is not compatible with this change.
Therefore, I suggest that you downgrade your version of ngx-translate/http-loader to 0.1.0 until Ionic is compatible with Angular 4.3+.
You should be able to keep ngx-translate/core 7.1.0
Kind regards,
TiffMaelite

1 Like

Thanks, this solved my problem!

The following worked for me:

npm install @ngx-translate/core @ngx-translate/http-loader@0.1.0 --save-exact