Skip to content
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

Crash on mixpanel.track. Assertion failed: Property values must be of valid type (MixpanelType) and valid value. #117

Closed
erisvaldojunior opened this issue Dec 22, 2021 · 2 comments

Comments

@erisvaldojunior
Copy link

erisvaldojunior commented Dec 22, 2021

Seems like the library is not supporting nested objects as properties. Crash happens.

So for example:

// Works well

const gameLevel = {
      cardCount: 6,
      name: "Easy"
}

const gameDetails = {
     "Game Level": gameLevel
};

mixpanel.track(event, { ...gameDetails });


// Crashes because of grid object!

const gameLevel = {
      cardCount: 6,
      grid: { columns: 3, rows: 2 },
      name: "Easy"
}

const gameDetails = {
     "Game Level": gameLevel
};

mixpanel.track(event, { ...gameDetails });

@zihejia
Copy link
Contributor

zihejia commented Dec 23, 2021

hi @erisvaldojunior , we will have a look.

@zihejia
Copy link
Contributor

zihejia commented Jan 4, 2022

Hi @erisvaldojunior , this issue has been fixed in 1.3.5. I'm closing this issue now, please feel free to reopen if the problem still exits.

@zihejia zihejia closed this as completed Jan 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants