Hello,
I can not execute ng serve, I have this error
ERROR in Error: Metadata version mismatch for module D:/sts-workspace/project/node_modules/ng2-tree/index.d.ts, found version 4, expected 3, resolving symbol ComponentsModule in D:/sts-workspace/project/src/app/pages/components/components.module.ts, resolving symbol ComponentsModule in D:/sts-workspace/project/src/app/pages/components/components.module.ts
+1
+1
I also have the same problem
+1
+1
version 2.0.0 works
2.0.0-rc.1 doesn't works for me. my angular/cli is 1.2.7
I delete ng2-tree and delete the folder "tree" from pages, and I delete treemodule call in page module.
npm uninstall ng2-tree
and it's work I don't need this component but it will be cool if we cans fixe it for next versions.
Hey Guys, could you let me know your npm version? As it looks like your npm avoided package-lock.json and installed the latest angular 5 version of ng2-tree. Please, conder using the correct npm version (5+).
Ok :
works with
"ng2-tree": "2.0.0-alpha.10"
Don't work with the caret (^)
"ng2-tree": "^2.0.0-alpha.10"
With the caret npm take the "2.0.0-rc.1" and this release need Angular 5.
I am also facing the same issue with npm start command:
ERROR in Error: Metadata version mismatch for module D:/workspace/akeveo/ngx-admin/node_modules/ng2-tree/index.d.ts, found version 4, expected 3, resolving symbol ComponentsModule in D:/workspace/akeveo/ngx-admin/src/app/pages/components/components.module.ts, resolving symbol ComponentsModule in D:/workspace/akeveo/ngx-admin/src/app/pages/components/components.module.ts
at Error (native)
at syntaxError (D:\workspace\akeveo\ngx-admin\node_modules\@angular\compiler\bundles\compiler.umd.js:1729:34)
at simplifyInContext (D:\workspace\akeveo\ngx-admin\node_modules\@angular\compiler\bundles\compiler.umd.js:24979:23)
at StaticReflector.simplify (D:\workspace\akeveo\ngx-admin\node_modules\@angular\compiler\bundles\compiler.umd.js:24991:13)
I am using the following node version:
node --version : v6.11.4
npm -v : 3.10.10
node V7
npm 3.10.8
node degrade to last version a.k.a 2.0 it work only this version got the error
Don't you just love when your release doesn't happen due to a plugin!
Guys, please make sure you npm version is 5+ or update it to a newer with:
npm i npm -g
Then remove the node_modules and install from scratch.
This is a requirement for the project.
What do you mean by "remove the node_modules"? Thanks
@anishThomas4419 Did you find a solution?
@vishaldhiman I've uninstalled ng2-tree and reinstalled with 2.0.0-alpha.10 version. It helped me to run non start. followed the comments from @FARHANE. Thanks all.
@Yolepo Thanks, "ng2-tree": "2.0.0-alpha.10" it works for me
@nnixaa Hello nnixaa, I try your method and it OK ,now the npm is 5.6.0 and the node.js is 6.12.0.But a new issue is occurs after I update the npm(this issue doesn't occur before update) is as fellows:
kris-allen@krisallen:~/ngx-admin$ npm install
npm WARN registry Unexpected warning for https://registry.npmjs.org/: Miscellaneous Warning EINTEGRITY: sha512-WIr7iDkdmdbxu/Gh6eKEZJL6KPE74/5MEsf2whTOFNxbIoIixogroLdKYqB6FDav4Wavh/lZdzzd3b2KxIXC5Q== integrity checksum failed when using sha512: wanted sha512-WIr7iDkdmdbxu/Gh6eKEZJL6KPE74/5MEsf2whTOFNxbIoIixogroLdKYqB6FDav4Wavh/lZdzzd3b2KxIXC5Q== but got sha1-EfgjGPX+e7LNIpZaEI6TBiCCFtg=. (1837200 bytes)
npm WARN registry Using stale package data from https://registry.npmjs.org/ due to a request error during revalidation.
npm WARN tar zlib error: unexpected end of file
npm ERR! cb() never called!
npm ERR! This is an error with npm itself. Please report this error at:
npm ERR! <https://github.com/npm/npm/issues>
npm ERR! A complete log of this run can be found in:
npm ERR! /home/kris-allen/.npm/_logs/2017-11-29T19_48_56_963Z-debug.lo
### Why the issue is ? How should I do for it ?
Most helpful comment
Ok :
works with
"ng2-tree": "2.0.0-alpha.10"
Don't work with the caret (^)
"ng2-tree": "^2.0.0-alpha.10"
With the caret npm take the "2.0.0-rc.1" and this release need Angular 5.