Home:ALL Converter>Mismatch with Angular material and Angular 4

Mismatch with Angular material and Angular 4

Ask Time:2017-11-21T04:18:19         Author:Jandre van Zyl

Json Formatter

In get the following error after having done an npm install.

@angular/material/core/typings/index.d.ts, found version 4, expected 3, resolving symbol

How can I install a the specific version of angular material so that I can realove this error.

My pacakage json looks like this

"@angular/animations": "^4.4.6",
"@angular/cdk": "github:angular/cdk-builds",
"@angular/common": "^4.0.0",
"@angular/compiler": "^4.0.0",
"@angular/core": "^4.0.0",
"@angular/forms": "^4.0.0",
"@angular/http": "^4.0.0",
"@angular/material": "github:angular/material2-builds",
"@angular/platform-browser": "^4.0.0",
"@angular/platform-browser-dynamic": "^4.0.0",
"@angular/router": "^4.0.0",
"@ng-idle/core": "^2.0.0-beta.12",
"@ng-idle/keepalive": "^2.0.0-beta.12",
"angular2-moment": "^1.7.0",
"angular2-recaptcha": "^0.6.0",
"angulartics2": "^3.3.0",
"bootstrap": "^3.3.7",
"chartjs": "^0.3.24",
"core-js": "^2.4.1",
"file-saver": "^1.3.3",
"financejs": "^4.1.0",
"moment": "^2.18.1",
"ng2-ckeditor": "^1.1.9",
"ng2-currency-mask": "^4.4.1",
"ng2-slim-loading-bar": "^4.0.0",
"ngx-toastr": "^6.2.0",
"primeng": "^4.3.0",
"rxjs": "^5.1.0",
"web-animations-js": "^2.3.1",
"zone.js": "0.8.14"

Author:Jandre van Zyl,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/47400327/mismatch-with-angular-material-and-angular-4
yy