Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error with ngx-clipboard while building the project angular

Tags:

angular

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;

       ~~~~~~~~~~~
like image 574
Bilel Harabi Avatar asked Dec 23 '22 18:12

Bilel Harabi


1 Answers

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
like image 127
Alberto Sanchez Gonzalez Avatar answered Dec 28 '22 11:12

Alberto Sanchez Gonzalez