ObaidUrRehman / ng-drag-drop

Drag & Drop for Angular - based on HTML5 with no external dependencies. :tada:
MIT License
240 stars 123 forks source link

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

Open syedthamim opened 9 months ago

syedthamim commented 9 months ago

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?

TexRx commented 7 months ago

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.