Occasionally, the application experiences client-side errors that result in unusual and unclear UI messages for the following reason.
In your production application a client-side error occurred that was not caught by an error boundary. Additional information should be visible in the console tab of your browser.
Proposed solution
We need to enclose our client component (i.e., _app.tsx) with an error_boundary component to capture errors and display a meaningful message on the UI.
Description
Occasionally, the application experiences client-side errors that result in unusual and unclear UI messages for the following reason.
Reference: https://nextjs.org/docs/messages/client-side-exception-occurred
Proposed solution
We need to enclose our client component (i.e., _app.tsx) with an error_boundary component to capture errors and display a meaningful message on the UI.
Reference - https://react.dev/reference/react/Component#catching-rendering-errors-with-an-error-boundary
Figure: Client side exception on UI