Frontend Errors Not Logged in Production

Hello Dash team and community,

I’ve been working with Dash in a production setting and encountered a limitation related to frontend error handling. I searched through GitHub and the forum but haven’t found a built-in solution or guidance addressing this.

Problem

In development mode, Dash displays helpful frontend error messages in the browser when, for example, a callback references an unsupported property on a component.

However, in production mode:

  • These messages are suppressed in the frontend UI (expected behavior for a cleaner user experience).
  • But they are also not logged anywhere in the backend.
  • Since these errors originate in the React frontend, they never reach the server, so Flask has no opportunity to capture or log them.

This means errors in callback definitions can silently fail in production without any trace in server logs.

Question

Is there currently any recommended method to:

  • Capture these client-side validation errors and
  • Redirect them to the backend for logging or alerting?

Suggestion

It would be extremely helpful if Dash had a built-in option to log or forward these frontend errors to the server for inspection — particularly in production environments.

If not, would this be a reasonable candidate for a future feature?

Thanks!