Unable to use on Windows
Closed this issue ยท 3 comments
mslourens commented
๐ Bug report
Description
When run on Windows I get the following error: UnhandledPromiseRejectionWarning: Error [ERR_UNSUPPORTED_ESM_URL_SCHEME]: Only file and data URLs are supported by the default ESM loader. On Windows, absolute paths must be valid file:// URLs. Received protocol 'c:'
๐ฌ Minimal Reproduction
Just run one of the fse commands on Windows via the scripts in package.json
๐ปYour Environment
Node Version:
14.16.0
fse-cli Version:
^0.1.6
๐ฅ Exception or Error
UnhandledPromiseRejectionWarning: Error [ERR_UNSUPPORTED_ESM_URL_SCHEME]: Only file and data URLs are supported by the default ESM loader. On Windows, absolute paths must be valid file:// URLs. Received protocol 'c:'
at Loader.defaultResolve [as _resolve] (internal/modules/esm/resolve.js:782:11)
at Loader.resolve (internal/modules/esm/loader.js:86:40)
at Loader.getModuleJob (internal/modules/esm/loader.js:230:28)
at Loader.import (internal/modules/esm/loader.js:165:28)
at importModuleDynamically (internal/modules/esm/translators.js:114:35)
at exports.importModuleDynamicallyCallback (internal/process/esm_loader.js:30:14)
atao60 commented
Thanks to report this issue.
Can you tell me more about:
- Windows version
- which commands and possible parameters
atao60 commented
@mslourens can you check the new release 0.1.7. It should fix this issue.
mslourens commented
it works now. Thanks for your quick fix!