I am seeing this error again on Chrome/FireFox when instantiating new Clipboard('.copyText');
new Clipboard('.copyText');
Using the ClipboardJS constructor helps: var clipboard = new ClipboardJS('.btn');
var clipboard = new ClipboardJS('.btn');
Thanks @praVishal2910!
Most helpful comment
Using the ClipboardJS constructor helps:
var clipboard = new ClipboardJS('.btn');