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

An accessor cannot be declared in an ambient context

Open webstermobile opened this issue 3 years ago • 2 comments

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();

webstermobile avatar Nov 26 '20 11:11 webstermobile

I'm getting the same error. Any solution?

kiranruth avatar Feb 01 '21 06:02 kiranruth

I'm getting the same error. Any solution?

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

rezilo avatar Mar 26 '21 09:03 rezilo