cloudflare / workers-sdk

⛅️ Home to Wrangler, the CLI for Cloudflare Workers®
https://developers.cloudflare.com/workers/
Apache License 2.0
2.71k stars 712 forks source link

I encountered this error in the shopify project. What is the problem #7223

Open CrealityIT opened 1 month ago

CrealityIT commented 1 month ago

`PS D:\headless\hydrogen_creality\main_creality> npm run dev

main-creality@2024.7.8 dev shopify hydrogen dev --codegen

Environment variables injected into MiniOxygen:

PUBLIC_STOREFRONT_ID from local .env PUBLIC_STOREFRONT_API_TOKEN from local .env PUBLIC_STORE_DOMAIN from local .env PRIVATE_STOREFRONT_API_TOKEN from local .env PUBLIC_CUSTOMER_ACCOUNT_API_CLIENT_ID from local .env PUBLIC_CUSTOMER_ACCOUNT_API_URL from local .env SHOP_ID from local .env SESSION_SECRET from local .env

➜ Local: http://localhost:3000/ ➜ Network: use --host to expose ➜ press h + enter to show help

╭─ success ──────────────────────────────────────────────────────────────────────────╮ │ │ │ View main_creality app: http://localhost:3000/ [1] │ │ │ │ View GraphiQL API browser: │ │ http://localhost:3000/graphiql │ │ │ │ View server network requests: │ │ http://localhost:3000/subrequest-profiler │ │ │ ╰────────────────────────────────────────────────────────────────────────────────────╯ [1] http://localhost:3000/

MiniOxygen: Error during evaluation: MiniflareCoreError [ERR_RUNTIME_FAILURE]: The Workers runtime failed to start. There is likely additional logging output above. at #assembleAndUpdateConfig (D:\headless\hydrogen_creality\main_creality\node_modules\miniflare\dist\src\index.js:9842:13)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async Mutex.runWith (D:\headless\hydrogen_creality\main_creality\node_modules\miniflare\dist\src\index.js:3627:16) {
code: 'ERR_RUNTIME_FAILURE', cause: undefined } MiniflareCoreError [ERR_RUNTIME_FAILURE]: The Workers runtime failed to start. There is likely additional logging output above.
at #assembleAndUpdateConfig (D:\headless\hydrogen_creality\main_creality\node_modules\miniflare\dist\src\index.js:9842:13)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async Mutex.runWith (D:\headless\hydrogen_creality\main_creality\node_modules\miniflare\dist\src\index.js:3627:16)`

penalosa commented 3 days ago

Thanks for reporting this! Would you be able to provide a reproduction repo that demonstrates the issue?