4

ERROR in node_modules/ngx-clipboard/lib/ngx-clipboard.service.d.ts:16:9 - error TS1086: An accessor cannot be declared in an ambient context.

16 get isSupported(): boolean;

       ~~~~~~~~~~~

3 Answers 3

15

It just happened to me today, installing current last version of ngx-clipboard, version 13.0.0 in Angular 8.

To fix it I downgraded the version installed, to last right version for my Angular 8, the 12.3.0:

npm uninstall ngx-clipboard
npm install [email protected] --save
2
  • Thanx Alberto ! yeah it was that , i downgraded the version to 12.0.0 and it works !! Commented Mar 11, 2020 at 8:45
  • could you please sort this out at the latest. Commented Apr 11, 2020 at 9:28
0

I was facing same issue. just downgrade ngx-clipboard version with 12.3 and works for me.

npm install [email protected] --save
-1

removing following line from node_modules/ngx-clipboard/lib/ngx-clipboard.service.d.ts will also get your work done.

get isSupported(): boolean;

Not the answer you're looking for? Browse other questions tagged or ask your own question.