You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
yarn build (with "type": "module" in package.json)
What is expected?
Successful command execution
What is actually happening?
PS C:\Projects\vue-cli-issue> yarn build
yarn run v1.22.11
$ vue-cli-service build
ERROR 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:'
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 new NodeError (node:internal/errors:371:5)
at Loader.defaultResolve [as _resolve] (node:internal/modules/esm/resolve:950:11)
at Loader.resolve (node:internal/modules/esm/loader:89:40)
at Loader.getModuleJob (node:internal/modules/esm/loader:242:28)
at Loader.import (node:internal/modules/esm/loader:177:28)
at importModuleDynamically (node:internal/modules/cjs/loader:1041:29)
at importModuleDynamicallyWrapper (node:internal/vm/module:437:21)
at importModuleDynamically (node:vm:381:43)
at exports.importModuleDynamicallyCallback (node:internal/process/esm_loader:30:14)
at loadFileConfig (C:\Projects\vue-cli-issue\node_modules\@vue\cli-service\lib\util\loadFileConfig.js:28:7)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Version
5.0.0-beta.3
Reproduction link
github.com
Environment info
Steps to reproduce
What is expected?
Successful command execution
What is actually happening?
Similar problem (Vite):
vitejs/vite#1712
The text was updated successfully, but these errors were encountered: