library is not compatible with Angular v20
- [x] My issue title starts with
[bug report] - [x] I have read the README, especially the 'classic blunders' section, and the dragula docs.
- [x] I have searched through the
ng2-dragulaissues for related problems, including closed issues. - [x] I have browsed through the issues labeled "future reference" for problems that have been solved before or have a known workaround.
- [x] I am using the latest version of
ng2-dragula.
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:
Any news on this?
We are also waiting for support with Angular 20