An accessor cannot be declared in an ambient context
webstermobile opened this issue · 2 comments
webstermobile commented
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
I'm getting the same error. Any solution?
rezilo commented
I'm getting the same error. Any solution?
I solved the problem by adding "skipLibCheck": true to tsconfig.json