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

Angular Universal Issue

Open lehoffma opened this issue 7 years ago • 4 comments

Hey, I tried using this library in an Angular Universal app, but I always get this runtime error:

ERROR TypeError: OriginalSortable.create is not a function
    at <path\to\source>

The stack trace points to this line.

The errors occur only when deployed with angular universal, otherwise everything works fine. I'm using v2.7.0 (and sortablejs v1.9.0).

lehoffma avatar May 13 '19 13:05 lehoffma

Hi,

please check npm i ngx-sortablejs (attention, the project was renamed)

smnbbrv avatar May 31 '19 21:05 smnbbrv

Hi,

please check npm i ngx-sortablejs (attention, the project was renamed)

Hi,

I encountered the same problem, with Angular 7 (using angular-sortablejs). The new package ngx-sortablejs is not compatible with Angular < 8. What do you recommend in this case ?

louis-rogeon avatar Sep 26 '19 14:09 louis-rogeon

I don't think I can anyhow fight this issue on angular < 8 because this limitation comes from angular-cli which is building the project. I would highly recommend to migrate from v7 to v8 anyway, because v7 is not LTS version...

smnbbrv avatar Sep 26 '19 17:09 smnbbrv

angular6 the same problem....

rorry121 avatar Jan 14 '20 07:01 rorry121