Using ngx-treeview Angular 16

1.6k views Asked by At

I'm trying to migrate Angular from 12 version to 16 and I have a package ngx-treeview, last update was for 10 version but it was used for 12 as well but it doesn't work now at all. I have an error This likely means that the library (ngx-treeview) which declares TreeviewModule is not compatible with Angular Ivy. Check if a newer version of the library is available, and update if so. Also consider checking with the library's authors to see if the library is expected to be compatible with Ivy. Maybe it might be fixed in some way or only removing this package?

I tried resolve this problem by myself by importing module in app module (before it was used in custom Angular lib which was created by ng g lib Also I investigated and researched how I can fix it by myself

2

There are 2 answers

0
DJM On

There are quite a few different implementations of ngx-treeview on npm, I found one that had been updated reasonably recently and it worked. Might be worth a look see if you wish to use a ngx-treeview tree.

https://npm.io/search/keyword%3Angx-treeview/2

1
Densv03 On

As I got from comment and google as well, it's better to use some another library. In my case I'll use angular material tree.