Skip to content

Fix blank page from broken React Fast Refresh runtime - #8

Merged
arena-ai-coding-agent[bot] merged 1 commit into
mainfrom
arena/019ff3f0-routeiq
Aug 12, 2026
Merged

arena-ai-coding-agent[bot] merged 1 commit into
mainfrom
arena/019ff3f0-routeiq

Conversation

@arena-ai-coding-agent

Copy link
Copy Markdown
Contributor

Summary

  • The Vite dev UI rendered a white page because RefreshRuntime.getRefreshReg is not exported by @vitejs/plugin-react 6 / Vite 8, while older or cached transforms still call it (Uncaught TypeError at App.jsx:21:9).
  • Restore getRefreshReg on /@react-refresh, remove stale fastRefresh/babel plugin options and brittle React file aliases, and allow Vite 8 preview hosts so the app can load.

Test plan

  • npm run build in frontend succeeds
  • /@react-refresh now exports getRefreshReg
  • Vite responds 200 for the preview host (no 403 allowlist block)
  • Hard-refresh the app in the browser and confirm the RouteIQ landing page renders instead of a blank screen
  • Confirm no RefreshRuntime.getRefreshReg is not a function in the console

plugin-react 6 no longer exports RefreshRuntime.getRefreshReg, so older
or cached module transforms throw and leave the UI blank. Restore that
export, drop stale plugin options, and allow preview hosts in Vite 8.

Co-authored-by: arena-agent <297053741+arena-agent@users.noreply.github.com>
@arena-ai-coding-agent
arena-ai-coding-agent Bot merged commit 0b58898 into main Aug 12, 2026
1 check passed
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.

1 participant