ObaidUrRehman/ng-drag-drop

Error: NgDragDropModule.forRoot returns a ModuleWithProviders type without a generic type argument

syedthamim opened this issue · 1 comments

Hi ,

After upgrading the application to Angular 16.2.10 below error is throwing during ngserve

Error details:
Error: node_modules/ng-drag-drop/src/ng-drag-drop.module.d.ts:3:23 - error NG6005: NgDragDropModule.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;

I tried adding generic type argument but it not resolved.

Any solution to resolve this error? or any new updates available for ng-drag-drop package?

  • Angular version: 16.2.10
  • Angular CLI Version: 16.2.10

No - there is no solution, and you should not expect a solution. The creator/maintainer of this project does not care to maintain beyond the last Ng version that this package supported. You need to abandon this package and move over to the angular cdk drag drop stuff, or pick another lib that is currently and actively supported. Painful, I know. I'm going through it now as well.