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.

ERROR in Error: Metadata version mismatch for module

See original GitHub issue

Hi, I am using 5.1.6 version. Here is detail of my angular app dependency. Please help me with this problem thanks!

Angular modules and versions.

"@angular/animations": "^4.4.6",
"@angular/cdk": "^5.2.1",
"@angular/common": "^4.4.6",
"@angular/compiler": "^4.4.6",
"@angular/core": "^4.4.6",
"@angular/forms": "^4.4.6",
"@angular/http": "^4.4.6",
"@angular/platform-browser": "^4.4.6",
"@angular/platform-browser-dynamic": "^4.4.6",
"@angular/router": "^4.4.6",
"@ng-bootstrap/ng-bootstrap": "^1.0.0-beta.5",

ERROR in Error: Metadata version mismatch for module C:/Users/Sami/Documents/cloud2_client/node_modules/ng-pick-datetime/picker.d.ts, found version 4, expected 3, resolving symbol System Module in C:/Users/Sami/Documents/cloud2_client/src/app/systems/system.module.ts, resolving symbol SystemModule in C:/Users/Sami/Documents/cloud2_client/src/app/systems/system.module.ts at syntaxError (C:\Users\Sami\Documents\cloud2_client\node_modules\@angular\compiler\bundles\compiler.umd.js:1729:34) at simplifyInContext (C:\Users\Sami\Documents\cloud2_client\node_modules\@angular\compiler\bundles\compiler.umd.js:24979:23) at StaticReflector.simplify (C:\Users\Sami\Documents\cloud2_client\node_modules\@angular\compiler\bundles\compiler.umd.js:24991:13) at StaticReflector.annotations (C:\Users\Sami\Documents\cloud2_client\node_modules\@angular\compiler\bundles\compiler.umd.js:24418:41) at _getNgModuleMetadata (C:\Users\Sami\Documents\cloud2_client\node_modules\@angular\compiler-cli\src\ngtools_impl.js:138:31) at _extractLazyRoutesFromStaticModule (C:\Users\Sami\Documents\cloud2_client\node_modules\@angular\compiler-cli\src\ngtools_impl.js:109:26) at C:\Users\Sami\Documents\cloud2_client\node_modules\@angular\compiler-cli\src\ngtools_impl.js:129:27 at Array.reduce (<anonymous>) at _extractLazyRoutesFromStaticModule (C:\Users\Sami\Documents\cloud2_client\node_modules\@angular\compiler-cli\src\ngtools_impl.js:128:10) at Object.listLazyRoutesOfModule (C:\Users\Sami\Documents\cloud2_client\node_modules\@angular\compiler-cli\src\ngtools_impl.js:53:22) at Function.NgTools_InternalApi_NG_2.listLazyRoutes (C:\Users\Sami\Documents\cloud2_client\node_modules\@angular\compiler-cli\src\ngtools_api.js:91:39) at AotPlugin._getLazyRoutesFromNgtools (C:\Users\Sami\Documents\cloud2_client\node_modules\@ngtools\webpack\src\plugin.js:212:44) at _donePromise.Promise.resolve.then.then.then.then.then (C:\Users\Sami\Documents\cloud2_client\node_modules\@ngtools\webpack\src\plugin.js:448:24) at <anonymous>

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
DanielYKPancommented, Feb 24, 2018

update you angular cli version

1reaction
DanielYKPancommented, Feb 19, 2018

update you angular version to 5+

Read more comments on GitHub >

github_iconTop Results From Across the Web

ERROR in Metadata version mismatch for module X found ...
It turns out the build error message indicates an Angular compatibility problem. The ngx-clipboard requires Angular 5+, but as can be seen from ......
Read more >
ERROR in Error: Metadata version mismatch for module ...
Hello everyone, i am trying to install this template in angular 4 but when write ng serve comand i get this error. i...
Read more >
Cordova Build Error: Metadata Version Mismatch - Ionic Forum
Hello guys, everytime I run ionic cordova build android --release --prod, I get the following error: Error: Metadata version mismatch for ...
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 >
Solving error mismatch beetwen Angular versions - Medium
Searching on internet I found the answer “Usually this happen because of that Angular 4 compiler cannot understand metadata files version 4 of...
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