-
Notifications
You must be signed in to change notification settings - Fork 164
Open
Description
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;
})
))
Metadata
Metadata
Assignees
Labels
No labels