Closed alejuanito closed 6 years ago
I have the same issue using @angular/core@4.4.6
I continue with the same problems, I had to change and now I use https://angular2-tree.readme.io/v6.1.0
Sorry. I fixed it in version 2.0.1. Thanks.
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 ?
I'm also getting the same error even with v2.0.1. Using Angular core 4.0.0
Hi!
"dependencies": { "@angular/animations": "^4.2.4", "@angular/common": "^4.2.4", "@angular/compiler": "^4.2.4", "@angular/compiler-cli": "^4.4.6", "@angular/core": "^4.2.4", "@angular/forms": "^4.2.4", "@angular/http": "^4.3.4", "@angular/platform-browser": "^4.2.4", "@angular/platform-browser-dynamic": "^4.2.4", "@angular/platform-server": "^4.4.6", "@angular/router": "^4.2.4", "@ng-bootstrap/ng-bootstrap": "1.0.0-beta.5", "@ngrx/core": "^1.2.0", "@ngrx/store": "^4.1.1", "angular2-jwt": "^0.2.3", "bootstrap": "^4.0.0-beta.2", "core-js": "^2.4.1", "jquery": "^3.2.1", "jwt-decode": "^2.2.0", "ng2-completer": "^1.6.3", "ngx-treeview": "^2.0.1", "popper.js": "^1.12.9", "rxjs": "^5.4.2", "tslint": "~5.7.0", "zone.js": "^0.8.14" },
this is my dependcies and I'm still facing the issue.
Updating all angular dependencies to 5.2.1 solved this issue for me, hope this help
Since I can't upgrade the Angular due to some other dependencies, I downgraded the plugin to "ngx-treeview": "^1.2.5"
and that worked for me.
I have the same issue, @maddy89 Why do you choose ^1.2.5?
I think that's the only version that worked for me back then. I'm not really sure since this is some time back
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