Closed StepanMynarik closed 1 year ago
Hi @StepanMynarik, I think this is related to typescript configuration. Try adding "esModuleInterop": true,
to your tsconfig compilerOptions
.
Didn't help unfortunately :(
I also tried importing like so import * as vitePreprocessor from "cypress-vite";
but to no avail.
I have the same issue
Hi @StepanMynarik, I think this is related to typescript configuration. Try adding
"esModuleInterop": true,
to your tsconfigcompilerOptions
.
Nvm, this seems to have solved it.
Didn't help unfortunately :( I also tried importing like so
import * as vitePreprocessor from "cypress-vite";
but to no avail.
Can you share your typescript, vite, and cypress configurations?!
Hi @StepanMynarik
Not sure if this will help you but I was getting this error along with the error:
Missing baseUrl in compilerOptions. tsconfig-paths will be skipped
So I added a baseUrl field to my tsconfig file compilerOptions as: "baseUrl": "./"
along with "esModuleInterop": true,
and this fixed the issue.
nb. I used "./"
because my cypress.config.ts
was on the same folder level as tsconfig.json.
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.
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.
Hi,
Just installed 1.2.1 in my project. I'm getting the following error when trying to run 'npx cypress run --e2e'
Any idea whats wrong?