-
Notifications
You must be signed in to change notification settings - Fork 140
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rrweb logger error: TypeError: Do not know how to serialize a BigInt
#968
Comments
![]() Yep, bigint isn't json stringifiable This would need to be fixed in rrweb downstream from us... You can patch this in your environment... for example GoogleChromeLabs/jsbi#30 (comment) |
Ah, and it's already a known issue there rrweb-io/rrweb#1209 |
fix proposed here rrweb-io/rrweb#1403 |
Fantastic, thanks @pauldambra! Looks like it was already merged into master there – any idea when that might land in |
I know the folk running rrweb are working on some issues before they can release their next version. So no timescale unfortunately. But we're excited for a few other fixes too so as soon as its available we'll move across |
That fix is now merged in rrweb, so this should be fine in latest versions |
My application logs a complex object that contains some values of type
BigInt
. This works in the user's development console, butposthog-js@npm:1.101.0
returns the error:Is there some way to exclude this particular
console.log
from rrweb logging?I'd love to be able to use something like
window._posthogMasked.console.log
(which could hold the un-instrumentedconsole.log
) for this particular logging statement.The text was updated successfully, but these errors were encountered: