Skip to content

fix(ui): Initial load of OpenRAG UI results in application error in development environment: "Uncaught ChunkLoadError"#873

Merged
mpawlow merged 1 commit into
mainfrom
mp_862
Jan 29, 2026
Merged

fix(ui): Initial load of OpenRAG UI results in application error in development environment: "Uncaught ChunkLoadError"#873
mpawlow merged 1 commit into
mainfrom
mp_862

Conversation

@mpawlow

@mpawlow mpawlow commented Jan 29, 2026

Copy link
Copy Markdown
Collaborator

Partially fixes #862

Code Change Summary

  • Update NEXT_ALLOWED_DEV_ORIGINS example format and defaults
  • Add error.tsx for route-level error boundary with ChunkLoadError detection and user-friendly recovery UI
  • Add global-error.tsx for root-level failures with inline styles (CSS may be unavailable at this level)
  • ChunkLoadError triggers full page reload; component errors offer reset option
  • Addresses initial load failures from chunk loading issues

Global Error - Rendered in UI

  • If the user encounters a global error, they'll be presented with an action to Reload Page to resolve the code loading issue
image

…evelopment environment: "Uncaught ChunkLoadError"

- #862
- Update NEXT_ALLOWED_DEV_ORIGINS example format and defaults
- Add error.tsx for route-level error boundary with ChunkLoadError detection and user-friendly recovery UI
- Add global-error.tsx for root-level failures with inline styles (CSS may be unavailable at this level)
- ChunkLoadError triggers full page reload; component errors offer reset option
- Addresses initial load failures from chunk loading issues
- Consolidate duplicate chunk load error detection logic from error.tsx and global-error.tsx into a reusable function in lib/utils.ts.

@lucaseduoli lucaseduoli left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM

@mpawlow mpawlow merged commit 36bb8f5 into main Jan 29, 2026
3 checks passed
@mpawlow mpawlow deleted the mp_862 branch January 29, 2026 16:14
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.

[Bug]: Initial load of OpenRAG UI results in application error in development environment: "Uncaught ChunkLoadError"

2 participants