sudodoki/copy-to-clipboard

Uncaught ReferenceError: require is not defined when using js file from cdn.

fabiocaccamo opened this issue · 3 comments

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

me too.

you can download and try this file : http://sudodoki.name/copy-to-clipboard/example/index.js