Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
syedthamim opened this issue Dec 5, 2023 · 1 comment

Comments

@syedthamim
Copy link

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
@TexRx
Copy link

TexRx commented Jan 19, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants