Closed SebiBasti closed 1 year ago
@SebiBasti I think it may be a configuration conflict with one of Vite plugins. Can you try to override the option in cypress configuration?
export default defineConfig({
e2e: {
setupNodeEvents(on) {
on('file:preprocessor', vitePreprocessor({
rollup: {
output: {
inlineDynamicImports: false
}
}
}))
}
},
})
Same issue with a similar config. Tried the option above and also the following, neither fixed the issue.
export default defineConfig({
e2e: {
setupNodeEvents(on) {
on("file:preprocessor", vitePreprocessor({
build: {
rollupOptions: {
output: {
inlineDynamicImports: false
}
}
}
}))
}
}
});
For the time being we switched to playwright, but I will test this again when there is some room in our work schedule.
I couldn't figure out what was going wrong. A reproduction might help to solve this.
@mammadataei thanks for answering. We switched to playwright and will probably stick with it. If we ever give cypress another try I will open another issue.
I'm encountering the following issue while setting up
cypress-vite
in my vue 3 app:cypress.config.ts:
vite.config.js:
package.json:
Any help would be highly appreciated!