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 #30949

Open
danieecudoidee opened this issue Jan 26, 2025 · 0 comments
Open

mixpanel-browser error on running tests #30949

danieecudoidee opened this issue Jan 26, 2025 · 0 comments

Comments

@danieecudoidee
Copy link

danieecudoidee commented Jan 26, 2025

Current behavior

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

Activity

Desired behavior

No response

Test code to reproduce

just have a code with the mixpanel init somewhere in the root of the app, the component tests will fail

Cypress Version

14.0.0

Node version

20.18.1

Operating System

MacOS Sonoma 14.4.1

Debug Logs

Other

No response

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

1 participant