Skip to content

Support Angular 13 #250

Description

@xibriz

Are there any plans to keep up with the development of Angular?

Package "ngx-sortablejs" has an incompatible peer dependency to "@angular/common" (requires "^11.0.0" (extended), would install "13.0.1").

Package "ngx-sortablejs" has an incompatible peer dependency to "@angular/core" (requires "^11.0.0" (extended), would install "13.0.1").

Activity

  1. p3x-robot commented on Nov 19, 2021

    @p3x-robot

    same here.

  2. sysmat commented on Nov 29, 2021

    @sysmat
    • angular update it works
    ng update 
    • ngx-bootstrap upgrade broke: Module '"ngx-bootstrap"' has no exported member 'BsDropdownModule', just need to be changed: import { BsDropdownModule } from 'ngx-bootstrap/dropdown';

    • "sortablejs": ">=1.14.0" also work

    • good practice is to add also peerDependencies: "@types/sortablejs": "^1.10.7"

  3. jalalh14 commented on Dec 15, 2021

    @jalalh14

    Same for me:

    npm ERR! code ERESOLVE
    npm ERR! ERESOLVE unable to resolve dependency tree
    npm ERR!
    npm ERR! While resolving: myunivers@0.0.0
    npm ERR! Found: @angular/common@13.1.1
    npm ERR! node_modules/@angular/common
    npm ERR! @angular/common@"~13.1.0" from the root project
    npm ERR!
    npm ERR! Could not resolve dependency:
    npm ERR! peer @angular/common@"^11.0.0" from ngx-sortablejs@11.1.0

  4. ducthang310 commented on Jan 11, 2022

    @ducthang310

    Hi team,
    any update on this to support Angular 13 :) ?

  5. inexuscore commented on Feb 22, 2022

    @inexuscore

    Is this repository actively maintained? We're using this in several projects and we need to upgrade to Angular 13 as soon as possible. I don't think the current version would work with Angular 13, correct?

  6. Reixko commented on Feb 22, 2022

    @Reixko

    @inexuscore if you would browse a little you would find that NO, this is very dead :D support for angular 12 and angular 13 is waiting, each in their separate PRs, so most you can do is to use a fork that you can find on npmjs.com :/

  7. inexuscore commented on Feb 22, 2022

    @inexuscore

    @Reixko not entirely dead, I've been using this repo in several projects lately. I managed to install the latest release using the --legacy-peer-deps flag, working fine with Angular 13 and RxJs 6+. It'd be nice to bring this repo up-to-date though.

  8. areksliwa-modento commented on Feb 28, 2022

    @areksliwa-modento

    I suggest you move to cdk drag drop. You will avoid such situation like that. I dropped ngx-sortablejs and implemented cdk drag drop. working minimal example :

    Screenshot 2022-02-28 at 14 24 09

    and add CSS:

    .cdk-drag-animating {
      transition: transform 250ms cubic-bezier(0, 0, 0.2, 1);
    }
    
    .list-options.cdk-drop-list-dragging .list-options__item:not(.cdk-drag-placeholder) {
      transition: transform 250ms cubic-bezier(0, 0, 0.2, 1);
    }
    

    and ts:

    drop(event: CdkDragDrop<string[]>, controlOptions): void {
        moveItemInArray(controlOptions, event.previousIndex, event.currentIndex);
      }
    

    of course here you have more examples:
    https://material.angular.io/cdk/drag-drop/examples

  9. Reixko commented on Feb 28, 2022

    @Reixko

    @areksliwa-modento CDK D&D is only good as long as you can live with single direction sorting -> either vertical or horizontal. I would say most people that are looking for alternatives(like me) need a sorting in a matrix(so combined vertical with horizontal sorting), which is almost impossible with angular's cdk :D I have tried it....... there is a "hack" out there, that will allow you to do mentioned matrix sorting, but that only works with version up to 10.something.something, which is not compatible with Angular12+. Oh forgot to mention - there is NO official support for matrix sorting in angular's cdk ;)

  10. Yura13 commented on Mar 23, 2022

    @Yura13

    Any updates to support Angular 13?

  11. alexanderpivanov commented on May 4, 2022

    @alexanderpivanov

    Any news?

  12. Klapik commented on Jun 28, 2022

    @Klapik

    Is this project dead? :D Should we do fork for new updates?

  13. saurabh47 commented on Jul 20, 2022

    @saurabh47

    Any updates on this issue?

  14. andreyv99 commented on Nov 23, 2022

    @andreyv99

    Does anyone know good alternatives for the angular 15 with the mixed orientation support?

  15. jfahrenkrug commented on Feb 22, 2023

    @jfahrenkrug

    I can't say anything about the quality of this fork, but someone updated this to be compatible with Angular 15. YMMV: https://github.com/DustFoundation/ngx-sortablejs, NPM: https://www.npmjs.com/package/@dustfoundation/ngx-sortablejs

  16. h3902340 commented on Jul 20, 2023

    @h3902340

    Any news on this? The latest version of Angular is 16 now.

  17. avpeshkov commented on Feb 7, 2024

    @avpeshkov

    For anyone who might care, found an alternative solution to support sortablejs for all angulars after 13.
    https://www.npmjs.com/package/nxt-sortablejs?activeTab=readme

  18. imtiazShakil commented on May 20, 2024

    @imtiazShakil

    hello developers of sortablejs.

    @owen-m1 @RubaXa

    Thanks for the awesome library. Can you give us an idea where we are with this library at the moment.
    Is this library officially maintained or not, let us know.

  19. coolboy4598 commented on Jun 20, 2025

    @coolboy4598

    For anyone who might care, found an alternative solution to support sortablejs for all angulars after 13. https://www.npmjs.com/package/nxt-sortablejs?activeTab=readme

    @avpeshkov
    Which version of nxt-sortablejs is workig with Angular 14?
    Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions