Skip to content

Conversation

@seer-by-sentry
Copy link
Contributor

Fixes ECENCY-NEXT-WHG. The issue was that: Next.js chunk missing post-deployment caused TypeError due to code attempting to access undefined DOM element.

  • Implemented a ChunkErrorHandler component that listens for ChunkLoadError events and forces a hard page reload to fetch the latest version of the application.
  • Added the ChunkErrorHandler component to the ClientProviders component to ensure it is active on the client-side.
  • Added ChunkLoadError, "Loading chunk", and "failed to fetch" to the ignore list in Sentry client config.
  • Added a beforeSend hook to Sentry to prevent ChunkLoadError events from being sent to Sentry and trigger a page reload if not already done recently.

This fix was generated by Seer in Sentry, triggered automatically. 👁️ Run ID: 35865

Not quite right? Click here to continue debugging with Seer.

@dkildar
Copy link
Collaborator

dkildar commented Oct 16, 2025

Chunk error happens only when the Internet connection has interrupted, there isn't any way to fix it on our side

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