SortableJS / ngx-sortablejs

Angular 2+ binding to SortableJS. Previously known as angular-sortablejs
https://sortablejs.github.io/ngx-sortablejs/
MIT License
466 stars 160 forks source link

OriginalSortable.create is not a function #185

Open khushbuS opened 4 years ago

khushbuS commented 4 years ago
Screenshot 2020-02-18 at 4 43 15 PM Screenshot 2020-02-18 at 4 46 35 PM

This was working fine from months in this config, suddenly started giving this error. What's going wrong here. Anyone ?

Thanks in advance.

YisalKhan commented 4 years ago

I am also facing this same issue. After googling it, I came to know that this package has been deprecated and its name has been changed to ngx-sortablejs.

So please let me know if you get success in fixing this issue or you just changed your package to ngx-sortablejs.

Thanks

smnbbrv commented 4 years ago

The library was renamed and further developed. Probably the issue you are facing is a mismatch between the versions of ngx-sortablejs and sortablejs

YisalKhan commented 4 years ago

Thanks @smnbbrv, Then please let me know should I update my package name in my package.json file. Or should I remove this package or use this from scratch.

YisalKhan commented 4 years ago

I have fixed this issue by defining the fixed version of sorablejs in package.json file and then run the npm i command.

You can fixed the specific version by removing ^ before the version of package name in package.json file. Thanks

codebeginer commented 3 years ago

Here is the solution, you can check the path in the screenshot Change this (line no 15) image

to this

image

samiurrahman commented 3 years ago

I have fixed this issue by defining the fixed version of sorablejs in package.json file and then run the npm i command.

You can fixed the specific version by removing ^ before the version of package name in package.json file. Thanks

This solved the issue. Thank you so much.