I have a simple structure to test clipboard.js but it\'s not working.
clipboard.js
I used in a simple file because it was not working in the project too:
you need to instantiate it by passing a DOM selector, HTML element, or list of HTML elements.
new ClipboardJS('.btn');
https://clipboardjs.com/#setup
Document Copy to clipboard