Skip to content

Module '"ngx-sortablejs"' has no exported member 'SortablejsOptions'.ts in Angular 12 #251

Open

Description

@kibria06cse

I am using Angular 12 version and ngx-sortablejs v11.1.0.

I used this options on a previous angular version. But whenever I upgrade from the angular and ngx-sortablejs version, I am getting this error.

Is there any alternatitve?

Activity

  1. tehZeno commented on Dec 15, 2021

    @tehZeno

    Had the same issue, this works for me:

    import {Options} from 'sortablejs';
    ..

    eventOptions: Options = {
        onUpdate: () => this.eventUpdateCounter ++
      };
    
  2. scuglik commented on Dec 15, 2021

    @scuglik

    I needed options for dragging beetween multiple list. I marked options as any type in typecsript without any imports and it works.... But only as temporary solution I hope import will be fixed soon :)

    options: any = { group: 'groups', draggable: '.draggable', };

  3. tehZeno commented on Dec 15, 2021

    @tehZeno

    I needed options for dragging beetween multiple list. I marked options as any type in typecsript without any imports and it works.... But only as temporary solution I hope import will be fixed soon :)

    options: any = { group: 'groups', draggable: '.draggable', };

    did you try my suggestion? (import {Options} from 'sortablejs';)

    (strangely enough I only get onStart events, but for other options should hopefully just work)

  4. scuglik commented on Dec 15, 2021

    @scuglik

    did you try my suggestion? (import {Options} from 'sortablejs';)

    Yes with a little edit import { SortableOptions } from 'sortablejs'; to keep same types as in example and it works. Thank you very much

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