Error Code Portal
Node.jsNode.jsError code

ERR_UNSUPPORTED_ESM_URL_SCHEME

unsupported esm url scheme

Code ERR_UNSUPPORTED_ESM_URL_SCHEME · An issue reported by Node.js.

import with URL schemes other than file and data is unsupported.

Troubleshooting and diagnostic links

First check that the document's product, version, and environment match your situation.