mammadataei / cypress-vite

Run Cypress specs using Vite
MIT License
85 stars 10 forks source link

cypress-vite not able to preprocess files #54

Closed flawnn closed 1 year ago

flawnn commented 1 year ago

Hi!

I get the following error when using cypress-vite as a preprocessor for cypress.

Unable to compile TypeScript:
error TS5095: Option 'preserveValueImports' can only be used when 'module' is set to 'es2015' or later.

Here is my cypress.config.ts:

export default defineConfig({
    e2e: {
        baseUrl: 'http://localhost:4173',
        setupNodeEvents(on) {
            on('file:preprocessor', vitePreprocessor('./vite.config.ts'));
        },
    }
});

Any idea why that might happen?

MetRonnie commented 1 year ago

It might be something in your vite.config.ts or tsconfig?

mammadataei commented 1 year ago

@flawnn can you share your tsconfig?

github-actions[bot] commented 1 year ago

This issue is automatically marked as stale because it has been open for 30 days with no activity. Remove the stale label or leave a comment, or it will be closed in 14 days.

github-actions[bot] commented 1 year ago

This issue was closed because it has been stalled for 14 days with no activity. Please feel free to open a new issue if you have any further questions.