ngx-sortablejs icon indicating copy to clipboard operation
ngx-sortablejs copied to clipboard

OriginalSortable.create is not a function

Open khushbuS opened this issue 5 years ago • 6 comments
trafficstars

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.

khushbuS avatar Feb 18 '20 11:02 khushbuS

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

YisalKhan avatar Apr 24 '20 05:04 YisalKhan

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

smnbbrv avatar Apr 24 '20 05:04 smnbbrv

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 avatar Apr 24 '20 07:04 YisalKhan

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

YisalKhan avatar Apr 27 '20 07:04 YisalKhan

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

to this

image

codebeginer avatar Jun 23 '21 11:06 codebeginer

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.

samiurrahman avatar Jul 31 '21 16:07 samiurrahman