Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doesn't work without requirejs. #37

Closed
fabiocaccamo opened this issue Aug 12, 2020 · 1 comment
Closed

Doesn't work without requirejs. #37

fabiocaccamo opened this issue Aug 12, 2020 · 1 comment

Comments

@fabiocaccamo
Copy link

fabiocaccamo commented Aug 12, 2020

Hello I'm try to use this library directly from cdn:

<script src="https://cdn.jsdelivr.net/npm/copy-text-to-clipboard@2.2.0/index.js" integrity="sha256-yDOY9y0ETQ5jNdYMNQnGn59QEdayQyLv8WYQ57TTeo4=" crossorigin="anonymous"></script>

but it throws the following exception: Uncaught ReferenceError: module is not defined.

requirejs seems to be mandatory, that's an unnecessary limit.

@sindresorhus
Copy link
Owner

I don't know how JSDeliver works, but you need a build tool to use this package, like Webpack.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants