Uncaught ReferenceError: require is not defined when using js file from cdn.
fabiocaccamo opened this issue · 3 comments
fabiocaccamo commented
Hello,
I'm trying to use copy-to-clipboard
directly from the cdn:
<script src="https://cdn.jsdelivr.net/npm/copy-to-clipboard@3.3.1/index.min.js"></script>
but the following error is thrown: Uncaught ReferenceError: require is not defined
5punk commented
Same
mouday commented
me too.
mouday commented
you can download and try this file : http://sudodoki.name/copy-to-clipboard/example/index.js