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

Cannot use import statement outside a module #435

Open
Tar-Abg opened this issue Jul 29, 2024 · 1 comment
Open

Cannot use import statement outside a module #435

Tar-Abg opened this issue Jul 29, 2024 · 1 comment

Comments

@Tar-Abg
Copy link

Tar-Abg commented Jul 29, 2024

image

image (3)

We use package version of 2.48.1 but after new release 2.54.0 the 2.48.1 version giving such a error

@tdumitrescu
Copy link
Member

Can you give us some more information about how you're importing the library? Doing the default way: import mixpanel from 'mixpanel-browser'; should use this file: https://github.com/mixpanel/mixpanel-js/blob/master/dist/mixpanel.cjs.js which does not have any import statements in it.

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