question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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:'

See original GitHub issue
  • Version (cloudcmd -v): v15.3.3
  • Node Version node -v: v14.15.4
  • OS (uname -a on Linux): windows 10
  • Browser name/version: chrome
  • Used Command Line Parameters: cloudcmd --port 2021
  • Changed Config: none
Received protocol 'c:' Promise {
  <rejected> 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/cjs/loader.js:1006:27)
      at exports.importModuleDynamicallyCallback (internal/process/esm_loader.js:30:14)
      at C:\Users\backtolife\AppData\Local\Yarn\Data\global\node_modules\simport\simport.js:22:26
      at validateRoot (file:///C:/Users/backtolife/AppData/Local/Yarn/Data/global/node_modules/cloudcmd/bin/cloudcmd.mjs:224:28)
      at main (file:///C:/Users/backtolife/AppData/Local/Yarn/Data/global/node_modules/cloudcmd/bin/cloudcmd.mjs:206:11) {
    code: 'ERR_UNSUPPORTED_ESM_URL_SCHEME'
  }
}

see: https://github.com/nodejs/node/issues/31710

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
I-Want-ToBelievecommented, Jan 23, 2021

http://localhost:8000/fs/c/

The file list appears after the path is completed. Thank you for your reminder.

1reaction
coderaisercommented, Jan 23, 2021

I can’t reproduce this. Could you please open url http://localhost:8000/fs/c/?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error [ERR_UNSUPPORTED_ESM_URL_SCHEME]: Only file ...
Notice the error message: Only file and data URLs are supported by the default ESM loader. On Windows, absolute paths must be valid...
Read more >
Only file and data URLs are supported by the default ESM ...
[BUG] 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:// ......
Read more >
Lab 7.1 ERR_UNSUPPORTED_ESM_URL_SCHEME
Error [ERR_UNSUPPORTED_ESM_URL_SCHEME]: Only file and data URLs are supported by the default ESM loader. On Windows, absolute paths must be ...
Read more >
Only file and data URLs are supported by the default ESM ...
Notice the error message: Only file and data URLs are supported by the default ESM loader. On Windows, absolute paths must be valid...
Read more >
jest only absolute urls are supported - You.com - You.com
ERROR Running tests failed: Error: Only file and data URLs are supported by the default ESM loader. On Windows, absolute paths must be...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found