ngx-clipboard: Error in clipboard.directive.ts

[default] .../node_modules/ngx-clipboard/dist/clipboard.directive.d.ts:1:1 
    Cannot find type definition file for 'clipboard'.
[default] .../node_modules/ngx-clipboard/dist/clipboard.directive.d.ts:3:28 
    Cannot find module 'clipboard'.
[default] Checking finished with 2 errors

Any idea ?

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 15 (7 by maintainers)

Most upvoted comments

Thank you for your reactivity ! I’m gonna try the new version latter today and I’ll let you know.

Thanks berhir, it’s working for me aswell with the downgrade

I get the same error when I run ngc -p ./tsconfig-aot.json. It works when I downgrade to v3.0.5 of ngx-clipboard.