SortableJS / ngx-sortablejs

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

An accessor cannot be declared in an ambient context #217

Open webstermobile opened 3 years ago

webstermobile commented 3 years ago

can't run it

ERROR in ../node_modules/ngx-sortablejs/lib/sortablejs.directive.d.ts:25:17 - error TS1086: An accessor cannot be declared in an ambient context.

25     private get options();
                   ~~~~~~~
../node_modules/ngx-sortablejs/lib/sortablejs.directive.d.ts:26:17 - error TS1086: An accessor cannot be declared in an ambient context.

26     private get optionsWithoutEvents();
                   ~~~~~~~~~~~~~~~~~~~~
../node_modules/ngx-sortablejs/lib/sortablejs.directive.d.ts:28:17 - error TS1086: An accessor cannot be declared in an ambient context.

28     private get isCloning();
                   ~~~~~~~~~
../node_modules/ngx-sortablejs/lib/sortablejs.directive.d.ts:30:17 - error TS1086: An accessor cannot be declared in an ambient context.

30     private get overridenOptions();
kiranruth commented 3 years ago

I'm getting the same error. Any solution?

rezilo commented 3 years ago

I'm getting the same error. Any solution?

I solved the problem by adding "skipLibCheck": true to tsconfig.json