Closed ethonai-dino closed 7 months ago
Same here. My cypress and cypress-vite versions are equal. My general vite version is 5.0.10. I thought maybe downgrading to 4.5 fixes the issue, as Cypress shows compatibility warnings with version 5, but unfortunately it didn't :(
@matthiasmoke
Made it work by changing my cypress.config.ts to JS (cypress.config.js)
const { defineConfig } = require('cypress')
const vitePreprocessor = require("cypress-vite");
module.exports = defineConfig({
e2e: {
setupNodeEvents(on) {
on('file:preprocessor', vitePreprocessor())
}
},
});
🤷
Duplicate of #13. @ethonai-dino I think this should help and you don't need to change your config to js.
TypeError: (0 , cypress_vite_1.default) is not a function
Stacktrace