Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

An accessor cannot be declared in an ambient context #217

Open
webstermobile opened this issue Nov 26, 2020 · 2 comments
Open

An accessor cannot be declared in an ambient context #217

webstermobile opened this issue Nov 26, 2020 · 2 comments

Comments

@webstermobile
Copy link

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
Copy link

I'm getting the same error. Any solution?

@rezilo
Copy link

rezilo commented Mar 26, 2021

I'm getting the same error. Any solution?

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants