Error in ngx-clipboard.service.d.ts
jacqueslareau opened this issue · 5 comments
I get this error on Angular 8.2.14, ts 3.5.3, ngx-clipboard 13.0.0
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;
~~~~~~~~~~~
umm, I guess you should try Angular 9 or use v12.
Yes. Downgraded to v12. In the changelog it says: adding support for angular 9. Does not say removing support for <8. Might consider adding a notice somewhere that v13 requires Angular 9.
It should popup a warning during package update.
ngx-clipboard/projects/ngx-clipboard/package.json
Lines 27 to 30 in d46bd25
Thank you! Just trying to save time to others. Thanks for your contribution!
Could you specify that it refers to the version of ngx-clipboard
, I thought it would refer to the version of Node.Js
and so install nvm
then I tried to put ngx-clipboard: ^ 12.0.0
and it worked