LuanEdCosta / copy-image-clipboard

Lightweight library to copy PNG and JPG images to clipboard
https://luanedcosta.github.io/copy-image-clipboard/
MIT License
59 stars 12 forks source link

Uncaught SyntaxError: Unexpected token 'export' #40

Closed huanlirui closed 1 year ago

huanlirui commented 1 year ago

image

LuanEdCosta commented 1 year ago

Error: Your environment does not support EcmaScript Modules (ESM or ES6 Modules). Possible solution: A file with CommonJS modules was published along with this library, maybe using it will solve the problem.


Could you show how are you importing the library in your code? So I can help you better.