sindresorhus/clipboardy

Loading with --experimental-modules

ianengelbrecht opened this issue · 2 comments

If I include import clipboard from 'clipboardy' in a script and then run that script with node --experimental-modules script.js, I get Error [ERR_UNSUPPORTED_ESM_URL_SCHEME]: Only file and data URLs are supported by the default ESM loader. This is with Node 12. package.json includes "type": "module"

This is not an issue with this package.

--experimental-modules is no longer needed. ESM is unflagged. Also ensure you're on the latest Node.js 12.x.x version.

https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c