-
Notifications
You must be signed in to change notification settings - Fork 7
Adjust import style for mixpanel-browser #28
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
base: main
Are you sure you want to change the base?
Conversation
|
I'm unable to replicate this issue in neither CJS nor ESM React envs. Can you share more information about your setup, or reproduction steps? While doing this I did notice that types were not being resolved in CJS environments, so I've fixed that. I've also upgraded everything to the latest version which might help with the issues you're having. Try 4.1.0. |
|
I just tried 4.1.0 and it's the same as before. It's hard to provide a reproducible environment right now, but here is some more of the error message. I will give you reproduction steps as soon as I can. I hope this helps you. |
|
I'm getting the exact same error here as well. |
|
getting this error using latest nextjs and bun |
|
still getting this error |
Problem:
When using the
<MixpanelProvider>the following error occurs:Proposed Solution:
I believe the issue stems from the way the
mixpanel-browserpackage is being imported. I've adjusted the import style in the code to address this problem and ensure compatibility.Please review the changes and let me know if any further adjustments are needed.