Hi there! Iโve created a new Hydrogen project (npm create @Shopify_77 /hydrogen@latest) selecting mock.shop as datasource. But, when I try to run it locally ( npm run dev ) it throws the following error:
hydrogen-storefront@1.0.6 dev
shopify hydrogen dev --codegen
Environment variables injected into MiniOxygen:
SESSION_SECRET from local .env
PUBLIC_STORE_DOMAIN from local .env
MiniflareCoreError [ERR_RUNTIME_FAILURE]: The Workers runtime failed to start. There is likely additional logging output above.
at #assembleAndUpdateConfig (C:\shopify\hydrogen-storefront\node_modules\miniflare\dist\src\index.js:8478:13)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async Mutex.runWith (C:\shopify\hydrogen-storefront\node_modules\miniflare\dist\src\index.js:3405:16)
at async #waitForReady (C:\shopify\hydrogen-storefront\node_modules\miniflare\dist\src\index.js:8528:5)
at async startWorkerdServer (file:///C:/shopify/hydrogen-storefront/node_modules/@shopify/cli-hydrogen/dist/lib/mini-oxygen/workerd.js:101:24)
at async safeStartMiniOxygen (file:///C:/shopify/hydrogen-storefront/node_modules/@shopify/cli-hydrogen/dist/commands/hydrogen/dev.js:121:18)
at async onBuildFinish (file:///C:/shopify/hydrogen-storefront/node_modules/@shopify/cli-hydrogen/dist/commands/hydrogen/dev.js:208:13)
Any ideas about what might be the cause of the problem?
Facing the same issue, itโs not possible to get the store running locally. I also tried to do an Oxygen deployment, but that fails with an even more obscure error:
Deploying to Oxygen..
[38](https://github.com/Nosto/shopify-hydrogen-demo/actions/runs/8938871131/job/24553842268#step:6:39)Deployment failed, error: Uncaught ReferenceError: global is not defined
[39](https://github.com/Nosto/shopify-hydrogen-demo/actions/runs/8938871131/job/24553842268#step:6:40) at worker.mjs:19:32086
[40](https://github.com/Nosto/shopify-hydrogen-demo/actions/runs/8938871131/job/24553842268#step:6:41) at worker.mjs:19:36089
[41](https://github.com/Nosto/shopify-hydrogen-demo/actions/runs/8938871131/job/24553842268#step:6:42) at worker.mjs:1:246
[42](https://github.com/Nosto/shopify-hydrogen-demo/actions/runs/8938871131/job/24553842268#step:6:43) at worker.mjs:81:30979
[43](https://github.com/Nosto/shopify-hydrogen-demo/actions/runs/8938871131/job/24553842268#step:6:44)โญโ error โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฎ
[44](https://github.com/Nosto/shopify-hydrogen-demo/actions/runs/8938871131/job/24553842268#step:6:45)โ โ
[45](https://github.com/Nosto/shopify-hydrogen-demo/actions/runs/8938871131/job/24553842268#step:6:46)โ Uncaught ReferenceError: global is not defined โ
[46](https://github.com/Nosto/shopify-hydrogen-demo/actions/runs/8938871131/job/24553842268#step:6:47)โ at worker.mjs:19:32086 โ
[47](https://github.com/Nosto/shopify-hydrogen-demo/actions/runs/8938871131/job/24553842268#step:6:48)โ at worker.mjs:19:36089 โ
[48](https://github.com/Nosto/shopify-hydrogen-demo/actions/runs/8938871131/job/24553842268#step:6:49)โ at worker.mjs:1:246 โ
[49](https://github.com/Nosto/shopify-hydrogen-demo/actions/runs/8938871131/job/24553842268#step:6:50)โ at worker.mjs:81:30979 โ
[50](https://github.com/Nosto/shopify-hydrogen-demo/actions/runs/8938871131/job/24553842268#step:6:51)โ โ
[51](https://github.com/Nosto/shopify-hydrogen-demo/actions/runs/8938871131/job/24553842268#step:6:52)โ โ
[52](https://github.com/Nosto/shopify-hydrogen-demo/actions/runs/8938871131/job/24553842268#step:6:53)โ Retrying the deployment may succeed. โ
[53](https://github.com/Nosto/shopify-hydrogen-demo/actions/runs/8938871131/job/24553842268#step:6:54)โ โ
[54](https://github.com/Nosto/shopify-hydrogen-demo/actions/runs/8938871131/job/24553842268#step:6:55)โ Next steps โ
[55](https://github.com/Nosto/shopify-hydrogen-demo/actions/runs/8938871131/job/24553842268#step:6:56)โ โข If the issue persists, please check the Shopify status page [1] for โ
[56](https://github.com/Nosto/shopify-hydrogen-demo/actions/runs/8938871131/job/24553842268#step:6:57)โ any known issues. โ
[57](https://github.com/Nosto/shopify-hydrogen-demo/actions/runs/8938871131/job/24553842268#step:6:58)โ โ
[58](https://github.com/Nosto/shopify-hydrogen-demo/actions/runs/8938871131/job/24553842268#step:6:59)โฐโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ
[59](https://github.com/Nosto/shopify-hydrogen-demo/actions/runs/8938871131/job/24553842268#step:6:60)[1] [https://status.shopify.com/](https://status.shopify.com/)
[62](https://github.com/Nosto/shopify-hydrogen-demo/actions/runs/8938871131/job/24553842268#step:6:63)โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
[63](https://github.com/Nosto/shopify-hydrogen-demo/actions/runs/8938871131/job/24553842268#step:6:64)Verifying deployment has been completed ...
[64](https://github.com/Nosto/shopify-hydrogen-demo/actions/runs/8938871131/job/24553842268#step:6:65)Error: Process completed with exit code 1.
Facing the same issue, itโs not possible to get the store running locally. I also tried to do an Oxygen deployment, but that fails with an even more obscure error:
My error is
Only URLs with a scheme in: file, data, and node are supported by the โ
โ default ESM loader. On Windows, absolute paths must be valid file:// URLs. โ
โ Received protocol โc:โ
Does anyone know how to fix it