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
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
The text was updated successfully, but these errors were encountered:
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.
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 fileWe 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
The text was updated successfully, but these errors were encountered: