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
When developing locally, we use Vite + React Router v7. When modifying the code, we encounter the following problem (is it a problem with Vite's HMR?).
browser:
Error: this request because it detected that your Worker's code had hung and would never generate a response. Refer to: https://developers.cloudflare.com/workers/observability/errors/
at async Object.fetch (file:///xxxx/node_modules/.pnpm/miniflare@4.20260317.1/node_modules/miniflare/dist/src/workers/core/entry.worker.js:4622:22)
server:
2:17:47 PM [vite+] (client) hmr update /app/components/xxx/xxxx/index.tsx, /app/app.css
[vite] hot updated: virtual:cloudflare/worker-entry
2:22:47 PM [react-router] Config saved
[vite] program reload
Warning: A promise was resolved or rejected from a different request context than the one it was created in. However, the creating request has already been completed or canceled. Continuations for that request are unlikely to run safely and have been canceled. If this behavior breaks your worker, consider setting the no_handle_cross_request_promise_resolution compatibility flag for your worker.
at
[vite] program reload
Warning: A promise was resolved or rejected from a different request context than the one it was created in. However, the creating request has already been completed or canceled. Continuations for that request are unlikely to run safely and have been canceled. If this behavior breaks your worker, consider setting the no_handle_cross_request_promise_resolution compatibility flag for your worker.
at CustomModuleRunner.import (workers/runner-worker/vite/module-runner:1061:10)
[vite] program reload
Warning: A promise was resolved or rejected from a different request context than the one it was created in. However, the creating request has already been completed or canceled. Continuations for that request are unlikely to run safely and have been canceled. If this behavior breaks your worker, consider setting the no_handle_cross_request_promise_resolution compatibility flag for your worker.
at /xxxxx/workers/app.ts:35:1
Warning: A promise was resolved or rejected from a different request context than the one it was created in. However, the creating request has already been completed or canceled. Continuations for that request are unlikely to run safely and have been canceled. If this behavior breaks your worker, consider setting the no_handle_cross_request_promise_resolution compatibility flag for your worker.
at CustomModuleRunner.import (workers/runner-worker/vite/module-runner:1061:10)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
When developing locally, we use Vite + React Router v7. When modifying the code, we encounter the following problem (is it a problem with Vite's HMR?).
browser:
Error: this request because it detected that your Worker's code had hung and would never generate a response. Refer to: https://developers.cloudflare.com/workers/observability/errors/
at async Object.fetch (file:///xxxx/node_modules/.pnpm/miniflare@4.20260317.1/node_modules/miniflare/dist/src/workers/core/entry.worker.js:4622:22)
server:
2:17:47 PM [vite+] (client) hmr update /app/components/xxx/xxxx/index.tsx, /app/app.css
[vite] hot updated: virtual:cloudflare/worker-entry
2:22:47 PM [react-router] Config saved
[vite] program reload
Warning: A promise was resolved or rejected from a different request context than the one it was created in. However, the creating request has already been completed or canceled. Continuations for that request are unlikely to run safely and have been canceled. If this behavior breaks your worker, consider setting the
no_handle_cross_request_promise_resolutioncompatibility flag for your worker.at
[vite] program reload
Warning: A promise was resolved or rejected from a different request context than the one it was created in. However, the creating request has already been completed or canceled. Continuations for that request are unlikely to run safely and have been canceled. If this behavior breaks your worker, consider setting the
no_handle_cross_request_promise_resolutioncompatibility flag for your worker.at CustomModuleRunner.import (workers/runner-worker/vite/module-runner:1061:10)
[vite] program reload
Warning: A promise was resolved or rejected from a different request context than the one it was created in. However, the creating request has already been completed or canceled. Continuations for that request are unlikely to run safely and have been canceled. If this behavior breaks your worker, consider setting the
no_handle_cross_request_promise_resolutioncompatibility flag for your worker.at /xxxxx/workers/app.ts:35:1
Warning: A promise was resolved or rejected from a different request context than the one it was created in. However, the creating request has already been completed or canceled. Continuations for that request are unlikely to run safely and have been canceled. If this behavior breaks your worker, consider setting the
no_handle_cross_request_promise_resolutioncompatibility flag for your worker.at CustomModuleRunner.import (workers/runner-worker/vite/module-runner:1061:10)
Beta Was this translation helpful? Give feedback.
All reactions