ngx-treeview
ngx-treeview copied to clipboard
Error with angular 8 i am try to use ngx-treeview ver.10.0.2
I found this issue when trying to use ngx-treeview ver.10.0.2 with angular 8 so please is it compatible together and if not what is the compatible ver. with angular 8
ERROR in node_modules/ngx-treeview/lib/components/treeview/treeview.component.d.ts:24:9 - error TS1086: An accessor cannot be declared in an ambient context.
24 get hasFilterItems(): boolean; ~~~~~~~~~~~~~~ node_modules/ngx-treeview/lib/components/treeview/treeview.component.d.ts:25:9 - error TS1086: An accessor cannot be declared in an ambient context.
25 get maxHeight(): string; ~~~~~~~~~ node_modules/ngx-treeview/lib/directives/dropdown.directive.d.ts:6:9 - error TS1086: An accessor cannot be declared in an ambient context.
I have the same issue running Angular 8. Also installed is "tslib": "1.10.0"
Im getting same error. any news on this?
Any update for that above issue i'm getting same issue.
import { TreeviewModule, TreeviewEventParser, OrderDownlineTreeviewEventParser } from 'ngx-treeview'; import that is specific component module for ex.tree.component.ts and tree.module.ts import that package in tree.module.ts
Note: don't import app.module.ts
Hi, I had the same issue, I only did close my visual Code and then I would verify that library imported correctly. you can try this and tell me if you could resolve it
i resolved adding : "skipLibCheck": true on tsconfig.json file for my project . I am using it correctly with angular 8
i am facing same
`- error TS2305: Module '"../../../../../../../../../../../Development/Sprint/Ng-Changes-9/RestaurantIntranet/RestaurantIntranet.WebUI/ClientApp/node_modules/ngx-treeview/ngx-treeview"' has no exported member 'TreeviewI18nDefault'.
1 import { TreeviewItem, TreeviewSelection, TreeviewI18nDefault } from 'ngx-treeview';`