ngx-treeview icon indicating copy to clipboard operation
ngx-treeview copied to clipboard

Error with angular 8 i am try to use ngx-treeview ver.10.0.2

Open mfarrag10 opened this issue 4 years ago • 7 comments

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.

mfarrag10 avatar Jul 10 '20 20:07 mfarrag10

I have the same issue running Angular 8. Also installed is "tslib": "1.10.0"

Eddie541 avatar Jul 15 '20 20:07 Eddie541

Im getting same error. any news on this?

oOBlinkOo avatar Aug 05 '20 23:08 oOBlinkOo

Any update for that above issue i'm getting same issue.

balachander2812 avatar Aug 24 '20 08:08 balachander2812

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

balachander2812 avatar Oct 07 '20 07:10 balachander2812

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

DanielSMendez18 avatar Jun 03 '21 23:06 DanielSMendez18

i resolved adding : "skipLibCheck": true on tsconfig.json file for my project . I am using it correctly with angular 8

Solocesar avatar Jul 17 '21 15:07 Solocesar

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';`

scorp559 avatar Nov 09 '22 13:11 scorp559