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 running Cypress component tests with Vite, it fails on some sourceUrl variable assign.
Tried to setup a new vite project, to install mixpanel again and use it in the App component, the tests are failing too
[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.
3298| if (sourcemap) {
lines.push(...)
}
3301| return lines;
at TransformPluginContext._formatError (file:////node_modules/vite/dist/node/chunks/dep-CB_7IfJ-.js:49255:41)
at TransformPluginContext.error (file:////node_modules/vite/dist/node/chunks/dep-CB_7IfJ-.js:49250:16)
at TransformPluginContext.transform (file:////node_modules/vite/dist/node/chunks/dep-CB_7IfJ-.js:63993:14)
at async PluginContainer.transform (file:////node_modules/vite/dist/node/chunks/dep-CB_7IfJ-.js:49096:18)
at async loadAndTransform (file:///node_modules/vite/dist/node/chunks/dep-CB_7IfJ-.js:51929:27)
at async viteTransformMiddleware (file:///
Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
Make sure this is a Vite issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to vuejs/core instead.
Describe the bug
When running Cypress component tests with Vite, it fails on some sourceUrl variable assign.
Tried to setup a new vite project, to install mixpanel again and use it in the App component, the tests are failing too
Reproduction
https://github.com/ciobanudann/cypress-vite-mixpanel-error
Steps to reproduce
System Info
Used Package Manager
npm
Logs
[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.
3298| if (sourcemap) {
lines.push(...)
}
3301| return lines;
at TransformPluginContext._formatError (file:////node_modules/vite/dist/node/chunks/dep-CB_7IfJ-.js:49255:41)
at TransformPluginContext.error (file:////node_modules/vite/dist/node/chunks/dep-CB_7IfJ-.js:49250:16)
at TransformPluginContext.transform (file:////node_modules/vite/dist/node/chunks/dep-CB_7IfJ-.js:63993:14)
at async PluginContainer.transform (file:////node_modules/vite/dist/node/chunks/dep-CB_7IfJ-.js:49096:18)
at async loadAndTransform (file:///node_modules/vite/dist/node/chunks/dep-CB_7IfJ-.js:51929:27)
at async viteTransformMiddleware (file:///
Validations
The text was updated successfully, but these errors were encountered: