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

mixpanel-browser error on running tests #466

Open
danieecudoidee opened this issue Jan 21, 2025 · 1 comment
Open

mixpanel-browser error on running tests #466

danieecudoidee opened this issue Jan 21, 2025 · 1 comment

Comments

@danieecudoidee
Copy link

danieecudoidee commented Jan 21, 2025

When we bumped our nodejs version, our dependency resolutions have changes resulting into creating a new package-lock.json file, after that it started erroring that this package uses JSX syntax inside a .js file

We are using:
node - 20.18.1
vite - 6.0.0
cypress - 14.0.0

[plugin:vite:import-analysis] Failed to parse source for import analysis because the content contains invalid JS syntax. If you are using JSX, make sure to name the file with the .jsx or .tsx extension. /.vite/deps/mixpanel-browser.js:3299:1288341

[plugin:vite:import-analysis] Failed to parse source for import analysis because the content contains invalid JS syntax. If you are using JSX, make sure to name the file with the .jsx or .tsx extension. /node_modules/.vite/deps/mixpanel-browser.js:3299:1288341

@tdumitrescu
Copy link
Member

Not sure which version of mixpanel-browser you're on, but can you paste the code that it's pointing to in that error message (node_modules/.vite/deps/mixpanel-browser.js, line 3299)? There's no jsx in this library.

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