You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In commit 600d6ab.
InitConfig was updated as per bellow
However secret is not listed here.
I assume this was not intentional as the option is still defined in README.
I have same issue as OP - basically for node-js SDK it seems the import method requires initialising Mixpanel with both project token and secret. Given the type of InitConfig was just Record<string, any> before is it just a matter of adding a secret: string to InitConfig?
As taken from readme:
var mixpanel_importer = Mixpanel.init('valid mixpanel token', {
secret: 'valid api secret for project'
});
edit: I see theres currently an open PR for this exact issue: #225
edit: as a workaround, albeit not ideal - you can just typecast the config object
this.mixpanel = Mixpanel.init(projectToken, {
debug: true,
secret: "YOUR_SECRET",
} as unknown as Mixpanel.InitConfig);
In commit 600d6ab.
InitConfig was updated as per bellow
However
secret
is not listed here.I assume this was not intentional as the option is still defined in README.
Obviously now I have typescript issues
The text was updated successfully, but these errors were encountered: