#2057·pino

[bug] in the browser, `pino.stdSerializers.errorWithCause` does not serialize `cause` prop

Author: jorrollCreated Oct 10, 2024Updated Mar 23, 2026

When using Pino.stdSerializers.errWithCause in the browser the "cause" property of errors are not, in fact, serialized.

Video demonstrating the behavior. https://www.loom.com/share/916e9677c50946f99a5772adef18e992?sid=e775a176-ceed-48a1-a032-821f8af74314

The problem appears to be that, in the browser, a pino/browser.js module is being loaded with a different implementation of stdSerializers.errWithCause which doesn't actually serialize the cause property.