ng2-dragula icon indicating copy to clipboard operation
ng2-dragula copied to clipboard

library is not compatible with Angular v20

Open StarNiell opened this issue 3 months ago • 2 comments

A clear and concise description of what the bug is. What did you do, and what did you expected to happen? What happened instead?

Dragula is not compatible with Angular 20

Steps to reproduce the behavior:

There are two scenarios:

I. You want to install dragula in ng20 project

npm install --save ng2-dragula See error: unable to resolve dependency tree

npm error code ERESOLVE npm error ERESOLVE could not resolve npm error npm error While resolving: [email protected] npm error Found: @angular/[email protected] npm error node_modules/@angular/animations npm error peerOptional @angular/animations@"20.1.3" from @angular/[email protected] npm error node_modules/@angular/platform-browser npm error peerOptional @angular/platform-browser@"^20.0.0" from @angular-devkit/[email protected] npm error node_modules/@angular-devkit/build-angular npm error dev @angular-devkit/build-angular@"~20.1.3" from the root project npm error peerOptional @angular/platform-browser@"^20.0.0" from @angular/[email protected] npm error node_modules/@angular/build npm error @angular/build@"20.1.3" from @angular-devkit/[email protected] npm error node_modules/@angular-devkit/build-angular npm error dev @angular-devkit/build-angular@"~20.1.3" from the root project npm error 10 more (@angular/forms, @angular/platform-browser-dynamic, ...) npm error peer @angular/animations@"18.x || 19.x || 20.x" from @swimlane/[email protected] npm error node_modules/@swimlane/ngx-charts npm error @swimlane/ngx-charts@"23.0.0" from the root project npm error 3 more (ngx-chips, ngx-ui-switch, the root project) npm error npm error Could not resolve dependency: npm error peer @angular/animations@">=16.0.0 <20.0.0" from [email protected] npm error node_modules/ng2-dragula npm error ng2-dragula@"^6.0.0" from the root project npm error npm error Conflicting peer dependency: @angular/[email protected] npm error node_modules/@angular/animations npm error peer @angular/animations@">=16.0.0 <20.0.0" from [email protected] npm error node_modules/ng2-dragula npm error ng2-dragula@"^6.0.0" from the root project npm error npm error Fix the upstream dependency conflict, or retry npm error this command with --force or --legacy-peer-deps npm error to accept an incorrect (and potentially broken) dependency resolution. npm error npm error npm error For a full report see:

StarNiell avatar Sep 09 '25 08:09 StarNiell

Any news on this?

akuma8 avatar Oct 12 '25 19:10 akuma8

We are also waiting for support with Angular 20

obaum74 avatar Oct 14 '25 11:10 obaum74