-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Error: Metadata version mismatch #8229
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hello! It seem you used the old version of @angular/material package; Try |
thanks i think that did the trick :) |
I have the same issue and @vida25 response did not work for me.
My package.json file:
|
Facing the same issue ERROR in Metadata version mismatch for module C:/Users/Afsar/ProjectNova_Website/node_modules/angular2-cool-storage/index.d.ts, found version 4, expected 3, resolving symbol AppModule in C:/Users/Afsar/ProjectNova_Website/src/app/app.module.ts, resolving symbol AppModule in C:/Users/Afsar/ProjectNova_Website/src/app/app.module.ts |
I also have the same issue, even with latest @angular/cdk(^5.0.0-rc0) and @angular/material(^5.0.0-rc0)
any ideas? |
@javierarocena, @afsar-infobeans, @tislars: upgrading only
|
@reod How can i update "@angular/compiler", "@angular/common"? |
@reod But want to check what are the dependencies for angular 5.Need to change a lot in my angular 4 current application Below is my package.json pls suggest |
Updating dependencies worked for me! Modified lines in package.json:
|
i had also updated my node/npm to latest: 8.9.0 / 5.5.12: @angular/cli: 1.4.7 |
I updated everything I could to 5.0.0 but still couldn't get it to work...
When I update compiler-cli to 5 I start getting this instead
|
The RC release is targeted for Angular5, so you will need to be on that version to use this release. |
Thanks @amcdnl ! Works like a charm now! |
I am having the same issue, and reinstalling over existing and manually changing the package.json didn't help. Could anyone provide an example of the fastest way to rebuild from the command line once I clone my repository to a fresh folder? I know it sounds newb, but all the npm install switches and version combinations are killing me. |
maybe delete contents of node_modules folder and re-install ? |
@amcdnl Thanks, It Worked! |
After removing nodes_module and reinstall, I also had to run: npm install --save-dev html-webpack-plugin webpack webpack-dev-server |
Guys it resolved after reinstalling the Angular CLI and latest npm. However it needs some manual efforts to create the project structure again. It doesn't worked when i import same work space which is available earlier (as it has old version labels in package.json) . Here are the commands for your reference to reinstall NPM and CLI. |
ERROR in Error: Metadata version mismatch for module D:/minprogram/angularDome/node_modules/ngx-filesaver/index.d.ts, |
For me problem was fixed after removing node_modules folder and installing packages with latest version from scratch. |
@nikhildesu i attempted your first command npm install npm@latest –g, and got this.. I'm assuming I have to drop the -g? |
Again... newb thing here, but it sure would be sweet to have a single list of all the commands to fix this problem. For example, if I clone my project from github to a clean directory, there is not "node-modules" to delete. And some commands fail with wrong additional parameters. anyone have a link to a clean, complete set of commands for rebuilding project when you get the above error? cobbling together from different answers here in order doesn't seem to work. |
@Jay-PC "g" is used to install it globally. Hope you're executing from Node cmd.. Try opening node as Administrator and execute it |
I had to update "@angular/cli": "^1.5.0" in deveDependencies (locally) to get this to work. |
Here is where I am now... and, I'm still attempting to create the precise steps with correct parameters/flags.... and get the fewest warnings from doing things out of sequence.
npm install npm@latest -g npm install --save rxjs@latest Now when i run "ng serve", i get the following error...
I have followed these instructions, but still get the same error message. |
@reod thanks, it worked for me : update all dependencies to 5.0.x, in addition, update ts to 2.4.x above |
Closing as we are not seeing issues in situations in which all |
I fixed mine with these steps: **installed NCU from here https://www.npmjs.com/package/npm-check-updates npm install -g npm-check-updates |
I encouter this problem when I use webpack [email protected], I change webpack version to 7.0.0 it fixed |
My error was
Problem solved by
|
I have same issue and the problem has been solved by:
I didn't upgrade the others so you can try. @Ram-SR |
@jschulz-giant thanks, worked for me |
You can try this solution with ngx-flash-messages https://yarnpkg.com/en/package/ngx-flash-messages |
ERROR in error : Metadata version mismatch for module someRoute/node_modules/@angular/flex-layout/typings/index.d.ts, found version 4, expected 3, resolving symbol AppModule in someRoute/MyApp/src/app/app.module.ts, resolving symbol AppModule in someRoute/MyApp/src/app/app.module.ts This things keep failing. In my case, all works like a charm locally so has no point to upgrade dependencies... but when we are deploying site on Azure, things just broke apart... its the first time this happen and we already made a lot of deploys... This thread shouldnt be closed. @angular/cli: 1.4.9 those are my current versions. Any thoughs on this? Thank you |
Following @jschulz-giant's comment, as I wanted to keep Angular 4, I updated the package.json dependencies as follows:
... and so far, I can use my first Material components! PS: With the additional commands:
|
I'm also having this error with angular 4. I have not updated to 5 and I would like to keep it that way. Here is my package.json file |
Hi @PhillipMwaniki I have been struggling with the same issue like, everyday I run the ng serve on my app. What I found yesterday is that material is no longer supported with versions of @angular/core behind 4, and it just works with angular 5, I was not sure about to upgrade my dependencies to angular 5, so what I made: I commented the lines that were giving me the error, I ran ng serve, then I uncommented again and It worked. I'm pretty sure that the error will be solved if we update the dependencies to angular 5. |
Hi @pegutierrez, it actually worked. I've moved to version 5. I hate how angular is forcing updates on projects. |
@Mayocampo I got a similar error on an Angular 4 app flex-layout updated the package dependencies to angular to ~5.1.0 in their 2.0.0-beta.12 release on 2017-12-14. See their changelog. In our package.json file, we have this dependency: "@angular/flex-layout": "^2.0.0-beta.8". The (^) will match any 2.x.x release. As a result, in our new build, it will grab the 2.0.0-beta.12 version of flex-layout, which has a different version of angular. To fix it, I just update the flex-layout dependencies to "@angular/flex-layout": "2.0.0-beta.8" (without the caret) and it worked. With the release of Angular 5, many packages probably updated their dependencies to Angular 5. Depends on how you specify your dependencies to these packages, you might get updated to a new version that now has different angular version than yours. |
I had a similar problem:
So I googled My solution was to change said dependency line in The best way would be to probably find the requirements of the new version and try to comply, but if you're in a hurry like me this can save some time |
ERROR in Error: Metadata version mismatch for module D:/wamp/www/guru-able-angul |
I tried all the above solutions but my error is not solved. Can someone help me |
2 pluz tuw iz 4 minuz 1 datz free #kwikmafzz |
If you don't want to upgrade all your Angular packages then you can downgrade the conflicting package to a version that is compatible with your existing Angular version. |
I tried everything above, but it didn`t help me, but after delete module and than write one more time everything become ok, strange but it helps me |
i am having the same problem of angular material ,found version 4 ,expected 3,so if anyone has a solution to this ,please |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
ERROR in Error: Metadata version mismatch for module /giant/cormoran/mgp-web/node_modules/@angular/material/core/typings/index.d.ts, found version 4, expected 3, resolving symbol AppModule in /giant/cormoran/mgp-web/src/app/app.module.ts, resolving symbol AppModule in /giant/cormoran/mgp-web/src/app/app.module.ts
The text was updated successfully, but these errors were encountered: