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

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

Open
kibria06cse opened this issue Dec 9, 2021 · 4 comments

Comments

@kibria06cse
Copy link

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?

@tehZeno
Copy link

tehZeno commented Dec 15, 2021

Had the same issue, this works for me:

import {Options} from 'sortablejs';
..

eventOptions: Options = {
    onUpdate: () => this.eventUpdateCounter ++
  };

@scuglik
Copy link

scuglik commented Dec 15, 2021

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', };

@tehZeno
Copy link

tehZeno commented Dec 15, 2021

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)

@scuglik
Copy link

scuglik commented Dec 15, 2021

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants