Skip to content

fix Sentry errors related to schema-editor dynamic import#7990

Merged
n1ru4l merged 1 commit intomainfrom
console-2025-stale-chunk-loads-surface-as-typeerror-cannot-destructure
Apr 17, 2026
Merged

fix Sentry errors related to schema-editor dynamic import#7990
n1ru4l merged 1 commit intomainfrom
console-2025-stale-chunk-loads-surface-as-typeerror-cannot-destructure

Conversation

@jonathanawesome
Copy link
Copy Markdown
Member

This PR removes event.preventDefault() from the vite:preloadError handler in main.tsx (keeping reloadOnChunkError()). preventDefault() made failed dynamic imports resolve to undefined, causing destructures like const { SchemaEditor } = await import(...) to throw a cryptic TypeError before the reload fired. Letting the error propagate routes it through the existing unhandled rejection / error-boundary paths, which already reload and are filtered by Sentry.

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

The pull request removes event.preventDefault() from the vite:preloadError listener in packages/web/app/src/main.tsx. This allows errors to propagate to unhandledrejection and error-boundary handlers, avoiding cryptic TypeErrors from Vite's silent branch. I have no feedback to provide.

@github-actions
Copy link
Copy Markdown
Contributor

🚀 Snapshot Release (alpha)

The latest changes of this PR are available as alpha on npm (based on the declared changesets):

Package Version Info
@graphql-hive/laboratory 0.1.4-alpha-20260416231425-917ad40400f4a0596698af4855a5242824fd459d npm ↗︎ unpkg ↗︎
@graphql-hive/render-laboratory 0.1.4-alpha-20260416231425-917ad40400f4a0596698af4855a5242824fd459d npm ↗︎ unpkg ↗︎
hive 11.0.3-alpha-20260416231425-917ad40400f4a0596698af4855a5242824fd459d npm ↗︎ unpkg ↗︎

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 16, 2026

🐋 This PR was built and pushed to the following Docker images:

Targets: build

Platforms: linux/amd64

Image Tag: 917ad40400f4a0596698af4855a5242824fd459d

@n1ru4l n1ru4l merged commit a71b45b into main Apr 17, 2026
104 of 112 checks passed
@n1ru4l n1ru4l deleted the console-2025-stale-chunk-loads-surface-as-typeerror-cannot-destructure branch April 17, 2026 06:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants