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

Error when trying to initialize the directive #37

Open
ventralnet opened this issue Dec 13, 2019 · 3 comments
Open

Error when trying to initialize the directive #37

ventralnet opened this issue Dec 13, 2019 · 3 comments

Comments

@ventralnet
Copy link

'Error in directive sortable bind hook: Sortable is not a constructor'

I assume the Sortable dependency did some breaking changes

@foxbunny
Copy link

Yup, appears Sortable dep now exports an object with the Sortable ctor as a member.

@shortcodes
Copy link

@foxbunny And what that means? And how to make it work?

@foxbunny
Copy link

@shortcodes I think it should be:

var Sortable = typeof require === 'function'
      ? require('sortablejs').Sortable // <-- this here
      : window.Sortable

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