Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error [ERR_UNSUPPORTED_ESM_URL_SCHEME]: Only URLs with a scheme in: file, data are supported by the default ESM loader. On Windows, absolute paths must be valid file:// URLs. Received protocol 'd:' #63

Open
le-thi-le opened this issue Aug 24, 2023 · 4 comments

Comments

@le-thi-le
Copy link

Environment

debug

Description

I try run this project in window 11 and debug in real device (Xiaomi note 11pro) but it show error
[catalog] [CatalogServer] Server listening at port 3000
[booking] i [09:58:28.627Z][DevServer] Server listening at http://127.0.0.1:9000
[shopping] i [09:58:28.632Z][DevServer] Server listening at http://127.0.0.1:9001
[dashboard] i [09:58:28.644Z][DevServer] Server listening at http://127.0.0.1:9002
[auth] i [09:58:28.648Z][DevServer] Server listening at http://127.0.0.1:9003
[host] i [09:58:28.708Z][DevServer] Server listening at http://127.0.0.1:8081
[host] i [09:58:29.077Z][DevServer] Hermes device connected { deviceId: 0 }
[host] i [09:58:29.079Z][DevServer] Hermes device connected { deviceId: 1 }
[host] i [09:58:30.071Z][DevServer] Hermes device connected { deviceId: 2 }
[host] i [09:59:26.067Z][DevServer] Hermes device disconnected { deviceId: 0 }
[host] i [09:59:27.486Z][DevServer] Hermes device connected { deviceId: 3 }
[host] i [09:59:27.579Z][DevServer] GET 200 /status request completed { responseTime: 3.962899997830391 }
[host] node:internal/event_target:912
[host] process.nextTick(() => { throw err; });
[host] ^
[host]
[host] Error [ERR_UNSUPPORTED_ESM_URL_SCHEME]: Only URLs with a scheme in: file, data are supported by the default ESM loader. On Windows, absolute paths must be valid file:// URLs. Received protocol 'd:'
[host] at new NodeError (node:internal/errors:372:5)
[host] at throwIfUnsupportedURLScheme (node:internal/modules/esm/resolve:1120:11)
[host] at defaultResolve (node:internal/modules/esm/resolve:1200:3)
[host] at ESMLoader.resolve (node:internal/modules/esm/loader:580:30)
[host] at ESMLoader.getModuleJob (node:internal/modules/esm/loader:294:18)
[host] at ESMLoader.import (node:internal/modules/esm/loader:380:22)
[host] at importModuleDynamically (node:internal/modules/cjs/loader:1043:29)
[host] at importModuleDynamicallyWrapper (node:internal/vm/module:437:21)
[host] at importModuleDynamically (node:vm:381:46)
[host] at importModuleDynamicallyCallback (node:internal/process/esm_loader:35:14)
[host] Emitted 'error' event on Compiler instance at:
[host] at Worker. (D:\lele\super-app-showcase\packages\host\node_modules@callstack\repack\dist\webpack\Compiler.js:110:14)
[host] at Worker.emit (node:events:527:28)
[host] at MessagePort. (node:internal/worker:232:53)
[host] at MessagePort.[nodejs.internal.kHybridDispatch] (node:internal/event_target:643:20)
[host] at MessagePort.exports.emitMessage (node:internal/per_context/messageport:23:28)
[host] yarn run start:host exited with code 1

----------------------------- my version in local device------------------------
node: v16.15.0
yarn: 3.2.1
webback: 8.5.5

Please suport me or Can you tell me I am missing config or environment? Thank you so much!

@le-thi-le
Copy link
Author

I see it also standing at the loading screen like in the issue #49

@umer4081
Copy link

umer4081 commented Sep 9, 2023

thank you so much this code is now working fine as I changed App name and remove splash screen and app icon and I do some changes catalog-server !!

@apatheticL
Copy link

Hello @akshay-capgemini. I think problem is node in Window OS. I tried every case but it not work in window but i change system use MacOS then it work. You can try it. I haven't been able to find out the reason why it not work in window.

@umer4081
Copy link

thank you so much this code is now working fine as I changed App name and remove splash screen and app icon and I do some changes catalog-server !!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants