Skip to content

Conversation

edmundhung
Copy link
Member

@edmundhung edmundhung commented Sep 19, 2025

Fixes DEVX-2115
Close #10434.

The fix was originally submitted by @zshannon in #10434. But I am unable to push the tests and changeset to the PR because of the use of default branch there.


  • Tests
    • Tests included
    • Tests not necessary because:
  • Public documentation
    • Cloudflare docs PR(s):
    • Documentation not necessary because: bugfix
  • Wrangler V3 Backport
    • Wrangler PR:
    • Not necessary because: no wrangler change

Copy link

changeset-bot bot commented Sep 19, 2025

🦋 Changeset detected

Latest commit: 176b4ae

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@cloudflare/vite-plugin Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link

pkg-pr-new bot commented Sep 19, 2025

create-cloudflare

npm i https://pkg.pr.new/create-cloudflare@10707

@cloudflare/kv-asset-handler

npm i https://pkg.pr.new/@cloudflare/kv-asset-handler@10707

miniflare

npm i https://pkg.pr.new/miniflare@10707

@cloudflare/pages-shared

npm i https://pkg.pr.new/@cloudflare/pages-shared@10707

@cloudflare/unenv-preset

npm i https://pkg.pr.new/@cloudflare/unenv-preset@10707

@cloudflare/vite-plugin

npm i https://pkg.pr.new/@cloudflare/vite-plugin@10707

@cloudflare/vitest-pool-workers

npm i https://pkg.pr.new/@cloudflare/vitest-pool-workers@10707

@cloudflare/workers-editor-shared

npm i https://pkg.pr.new/@cloudflare/workers-editor-shared@10707

wrangler

npm i https://pkg.pr.new/wrangler@10707

commit: 176b4ae

@edmundhung edmundhung force-pushed the edmundhung/vite-request-cancellation branch 2 times, most recently from 6ae710f to 00eafd5 Compare September 22, 2025 12:14
@edmundhung edmundhung force-pushed the edmundhung/vite-request-cancellation branch from 00eafd5 to 160026a Compare September 22, 2025 12:20
@edmundhung edmundhung marked this pull request as ready for review September 22, 2025 12:20
@edmundhung edmundhung requested review from a team as code owners September 22, 2025 12:20
Comment on lines +62 to +65
if (request.signal.aborted) {
// If the request was aborted, ignore the error
return;
}
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is no avoid vite dev server from rendering an error overlay when the request is aborted.

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

Successfully merging this pull request may close these issues.

2 participants