Skip to content

[WIP] Investigate Vite 8 CI failure with TextDecoder reference error#9988

Closed
Copilot wants to merge 3 commits intomainfrom
copilot/investigate-vite-8-ci-issue
Closed

[WIP] Investigate Vite 8 CI failure with TextDecoder reference error#9988
Copilot wants to merge 3 commits intomainfrom
copilot/investigate-vite-8-ci-issue

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Mar 27, 2026

  • Investigate the ReferenceError: TextDecoder is not defined issue with Vite 8
  • Root cause: Vite 8's module-runner.js uses new TextDecoder() at module level (fix(module-runner): handle non-ascii characters in base64 sourcemaps vitejs/vite#21985), but VM contexts for environments like edge-runtime don't include TextDecoder
  • Fix: add TextDecoder and TextEncoder to the VM context in packages/vitest/src/runtime/workers/vm.ts if not already present
  • Build and verify all tests pass (606 test files, no TextDecoder error)

⚡ Quickly spin up Copilot coding agent tasks from anywhere on your macOS or Windows machine with Raycast.

@netlify
Copy link
Copy Markdown

netlify bot commented Mar 27, 2026

Deploy Preview for vitest-dev ready!

Name Link
🔨 Latest commit bb790b5
🔍 Latest deploy log https://app.netlify.com/projects/vitest-dev/deploys/69c60cdd4f828c0009a97819
😎 Deploy Preview https://deploy-preview-9988--vitest-dev.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Agent-Logs-Url: https://github.com/vitest-dev/vitest/sessions/87e02793-1230-4956-9310-f5ccd5162555

Co-authored-by: hi-ogawa <4232207+hi-ogawa@users.noreply.github.com>
@hi-ogawa
Copy link
Copy Markdown
Collaborator

Copilot got stuck.

Copilot stopped work due to an error
Sorry, you've hit a rate limit that restricts the number of Copilot model requests you can make within a specific time period. Please try again in <duration>. Please review our Terms of Service (https://docs.github.com/site-policy/github-terms/github-terms-of-service). If the problem persists, please contact GitHub Support, including the request ID `2828:74015:734E6B:885C26:69C60CA3`. To retry, leave a comment on this pull request asking Copilot to try again.

@hi-ogawa hi-ogawa closed this Mar 27, 2026
@hi-ogawa hi-ogawa deleted the copilot/investigate-vite-8-ci-issue branch March 27, 2026 05:25
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

Successfully merging this pull request may close these issues.

2 participants