When sending data with mixpanel.track(event, data), if data contains unserializable data such as bigint, the call fails.
It would be great to support bigint in mixpanel and automatically serialize them as string.
The current workaround is to call the following to manually convert these bigint into string so there are no errors in the mixpanel library.
mixpanel.track(event, JSON.parse(
JSON.stringify(data, (key, value) => {
if (typeof value === "bigint") return value.toString();
return value;
})
))
When sending data with
mixpanel.track(event, data), ifdatacontains unserializable data such asbigint, the call fails.It would be great to support
bigintin mixpanel and automatically serialize them as string.The current workaround is to call the following to manually convert these bigint into string so there are no errors in the mixpanel library.