Metadata version mismatch for module found version 4, expected 3
See original GitHub issueI’m use angular 4 but this is my error
ERROR in Error: Metadata version mismatch for module ..t/node_modules/ngx-treeview/src/index.d.ts, found version 4, expected 3, resolving symbol AppModule in ../src/app/app.module.ts, resolving symbol AppModule in ../src/app/app.module.ts, resolving symbol AppModule in ../src/app/app.module.ts at Error (native) at syntaxError (..\node_modules\@angular\compiler\bundles\compiler.umd.js:1729:34) at simplifyInContext (..\node_modules\@angular\compiler\bundles\compiler.umd.js:24979:23) at StaticReflector.simplify (..\node_modules\@angular\compiler\bundles\compiler.umd.js:24991:13) at StaticReflector.annotations (..\node_modules\@angular\compiler\bundles\compiler.umd.js:24418:41) at _getNgModuleMetadata (..t\node_modules\@angular\compiler-cli\src\ngtools_impl.js:138:31) at _extractLazyRoutesFromStaticModule (..\node_modules\@angular\compiler-cli\src\ngtools_impl.js:109:26)
Dependencies
"dependencies": {
"@angular/animations": "^4.3.4",
"@angular/common": "^4.3.4",
"@angular/compiler": "^4.3.4",
"@angular/core": "^4.3.4",
"@angular/forms": "^4.3.4",
"@angular/http": "^4.3.4",
"@angular/platform-browser": "^4.3.4",
"@angular/platform-browser-dynamic": "^4.3.4",
"@angular/router": "^4.3.4",
"angular2-multiselect-dropdown": "^1.3.4",
"angular2-notifications": "^0.7.7",
"core-js": "^2.5.0",
"ng2-bs3-modal": "^0.10.4",
"ng2-charts": "^1.6.0",
"ng2-completer": "^1.6.0",
"ng2-datepicker": "^1.8.3",
"ng2-datepicker-bootstrap": "^1.0.0",
"ng2-sweetalert2": "0.0.8",
"ng2-validation": "^4.2.0",
"ngx-mydatepicker": "^2.1.3",
"ngx-treeview": "^2.0.0",
"rxjs": "^5.4.3",
"underscore": "^1.8.3",
"zone.js": "^0.8.16"
},
"devDependencies": {
"@angular/cli": "^1.3.1",
"@angular/compiler-cli": "^4.3.4",
"@types/jasmine": "2.5.38",
"@types/moment": "^2.13.0",
"@types/node": "~6.0.60",
"@types/underscore": "^1.8.1",
"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-coverage-istanbul-reporter": "^0.2.0",
"karma-jasmine": "~1.1.0",
"karma-jasmine-html-reporter": "^0.2.2",
"protractor": "~5.1.0",
"ts-node": "~2.0.0",
"tslint": "~4.5.0",
"typescript": "~2.2.0",
"uglify-js": "git://github.com/mishoo/UglifyJS2#harmony-v2.8.22"
}
Issue Analytics
- State:
- Created 6 years ago
- Comments:10 (1 by maintainers)
Top GitHub Comments
Updating all angular dependencies to 5.2.1 solved this issue for me, hope this help
I tried to install the newest version 2.0.1
But i have the same error
any suggestion please @leovo2708 ?