Fix error overlay not showing on dev error shell
The dev error shell dispatches errors to the overlay via
dispatcher.onUnhandledError + dispatcher.openErrorOverlay (app router
defaults the overlay to closed). The error is stored by hydrate() in
app-index.tsx and read by the entry points (app-next-dev.ts and
app-next-turbopack.ts) after renderAppDevOverlay() creates the React
root, ensuring the event queue is ready to receive the error.
Previously, handleClientError() was used but that only pushes to a
queue consumed by useErrorHandler in HotReloader, which never mounts
in the shell. Now we use the dev overlay's own dispatcher.
Co-Authored-By:
Claude <noreply@anthropic.com>
Showing
Please
register
or
sign in
to comment