question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Metadata version mismatch for module found version 4, expected 3

See original GitHub issue

I’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:closed
  • Created 6 years ago
  • Comments:10 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
const3commented, Jan 26, 2018

Updating all angular dependencies to 5.2.1 solved this issue for me, hope this help

1reaction
SleimanBcommented, Jan 4, 2018

I tried to install the newest version 2.0.1

+-- UNMET PEER DEPENDENCY @angular/common@4.4.6
+-- UNMET PEER DEPENDENCY @angular/core@4.4.6
+-- UNMET PEER DEPENDENCY @angular/forms@4.4.6
+-- UNMET PEER DEPENDENCY @angular/platform-browser@4.4.6
+-- UNMET PEER DEPENDENCY echarts@>=3.1.1
+-- UNMET PEER DEPENDENCY firebase@4.2.0
+-- ngx-treeview@2.0.1
+-- UNMET PEER DEPENDENCY popper.js@^1.12.3
`-- UNMET PEER DEPENDENCY typescript@2.3.4

But i have the same 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

any suggestion please @leovo2708 ?

Read more comments on GitHub >

github_iconTop Results From Across the Web

ERROR in Metadata version mismatch for module X found ...
Symptom. This is a general pattern that applies to the build error ERROR in Metadata version mismatch for module <X> found version 4,...
Read more >
Metadata version mismatch for module found version 4 ...
I'm having issues building my Angular 4.2 app with bugsnag-angular 2.x + bugsnag-js 4.6.x. Looks like this is only occurring with the -prod ......
Read more >
Metadata version mismatch for module /mobile/node_modules ...
Error: Metadata version mismatch for module /mobile/node_modules/@ionic-native/core/decorators.d.ts, found version 4, expected 3.
Read more >
5.0.0rc6 produces ERROR in Metadata version mismatch for ...
ERROR in Metadata version mismatch for module node_modules/angularfire2/index.d.ts, found version 4, expected 3, resolving symbol AppModule in ...
Read more >
Metadata version mismatch for module - Found vs Expected
Upgrading minor version of node modules for Angular are simple and straight forward. In rare cases you may encounter errors like ' Metadata...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found