Loading with --experimental-modules
ianengelbrecht opened this issue · 2 comments
ianengelbrecht commented
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"
sindresorhus commented
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
ianengelbrecht commented
Great, thank you
On Thu, 28 Oct 2021 at 20:18, Sindre Sorhus ***@***.***> wrote:
Closed #80 <#80>.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#80 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACH3QI7M5QM7WOG776PY6Z3UJGHYJANCNFSM5G5ND3OA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
--
Ian Engelbrecht
Data Coordinator: Natural Science Collections Facility
South African National Biodiversity Institute
Pretoria
www.nscf.org.za <http://www.nscf.co.za/>
www.sanbi.org
+27 82 763 4596
i ***@***.******@***.*** / ***@***.***