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

@types/mixpanel-browser does not support autocapture #470

Open
mundanelunacy opened this issue Feb 19, 2025 · 1 comment
Open

@types/mixpanel-browser does not support autocapture #470

mundanelunacy opened this issue Feb 19, 2025 · 1 comment

Comments

@mundanelunacy
Copy link

I try mixpanel.init() with the autocapture argument:

            mixpanel.init(MIXPANEL_TOKEN, {
                debug: MP_DEBUG,
                persistence: "localStorage",
                autocapture: true,
            });

I get the following typescript error:
Object literal may only specify known properties, and 'autocapture' does not exist in type 'Partial<Config>'.

Here is my package.json

{
  "dependencies" :  {
         "mixpanel-browser": "^2.60.0",
         "@types/mixpanel-browser": "^2.51.0",
   }
}

Image

@tdumitrescu
Copy link
Member

We don't maintain DefinitelyTyped, you can open a PR on that repo for them to review

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