ng2-file-input
ng2-file-input copied to clipboard
Metadata Mismatch version
ERROR: ERROR in Metadata version mismatch for module /home/projects/front-end/node_modules/ng2-file-input/dist/ng2-file-input.d.ts, found version 4, expected 3, resolving symbol GeneralModule in /home/projects/Finch/front-end/src/app/modules/shared/general.module.ts, resolving symbol GeneralModule in /home/projects/Finch/front-end/src/app/modules/shared/general.module.ts, resolving symbol GeneralModule in /home/projects/Finch/front-end/src/app/modules/shared/general.module.ts
my package.json
{ "name": "testapp", "version": "0.0.0", "license": "MIT", "scripts": { "ng": "ng", "start": "ng serve", "build": "ng build", "test": "ng test", "lint": "ng lint", "e2e": "ng e2e" }, "private": true, "dependencies": { "angular/animations": "^4.0.0", "angular/cdk": "^2.0.0-beta.12", "angular/common": "^4.0.0", "angular/compiler": "^4.0.0", "angular/compiler-cli": "^4.0.0", "angular/core": "^4.0.0", "angular/forms": "^4.0.0", "angular/http": "^4.0.0", "angular/material": "^2.0.0-beta.12", "angular/platform-browser": "^4.0.0", "angular/platform-browser-dynamic": "^4.0.0", "angular/platform-server": "^4.0.0", "angular/router": "^4.0.0", "bootstrap": "^3.3.7", "core-js": "^2.4.1", "easy-pie-chart": "^2.1.7", "materialize-css": "^0.100.2", "ng2-file-input": "^1.1.4", "rxjs": "^5.2.0", "zone.js": "^0.8.5" }, "devDependencies": { "angular/cli": "1.0.0", "types/jasmine": "2.5.38", "types/node": "~6.0.60", "codelyzer": "~2.0.0", "jasmine-core": "~2.5.2", "jasmine-spec-reporter": "~3.2.0", "karma": "~1.4.1", "karma-chrome-launcher": "~2.0.0", "karma-cli": "~1.0.1", "karma-jasmine": "~1.1.0", "karma-jasmine-html-reporter": "^0.2.2", "karma-coverage-istanbul-reporter": "^0.2.0", "protractor": "~5.1.0", "ts-node": "~2.0.0", "tslint": "~4.4.2", "typescript": "~2.4.0" } }
when i commented Ng2FileInputModule imports from general module and then again uncomment it and type the command ng-serve it will work fine and again stop and again compile it shows error...
@mukeshsoni0912 this error is fixed if you update your project to angular 5
i did not want to update my project to angular 5. is there any other solution??