SemioticLabs / ngx-treeview

An Angular treeview component with checkbox
MIT License
1 stars 0 forks source link

Error NG6005: ModuleWithProviders without generic type argument #5

Open ccondrup opened 1 month ago

ccondrup commented 1 month ago

Hello and thanks for the updated fork. I'm getting the following error:

Error: node_modules/@semioticlabs/ngx-treeview/src/treeview.module.d.ts:3:23 - error NG6005: TreeviewModule.forRoot returns a ModuleWithProviders type without a generic type argument. Please add a generic type argument to the ModuleWithProviders type. If this occurrence is in library code you don't control, please contact the library authors.

3 static forRoot(): ModuleWithProviders;

Angular 16.2.12 Typescript 5.1.6 @semioticlabs/ngx-treeview 8.0.7

Could this be due to strict tsconfig?

ccondrup commented 1 month ago

Just to follow-up, as these two repos seem affiliated:

"@samotics/ngx-treeview": "^16.0.2",

works fine. Maybe publish a new release/tag under the @semioticlabs name?

When I entered "@semioticlabs/ngx-treeview" in my package.json, the 8.0.7 version was suggested/autocompleted. Feel free to close this issue.