当前位置: 代码迷 >> 综合 >> angular8 里安装 ngx-clipboard报错ERROR in node_modules/ngx-clipboard/lib/ngx-clipboard.service.d.ts:16:9
  详细解决方案

angular8 里安装 ngx-clipboard报错ERROR in node_modules/ngx-clipboard/lib/ngx-clipboard.service.d.ts:16:9

热度:62   发布时间:2023-11-17 06:03:49.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;

解决:

npm uninstall ngx-clipboard
npm install ngx-clipboard@12.3.0 --save
  相关解决方案