Unexpected token import.meta.env when running Cypress with Vite #25877
Unanswered
kcubero27
asked this question in
Questions and Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello 👋🏼
I'm trying to set up Cypress on a Vite project (together). However, I am not able to run Cypress e2e tests with the app: either using the output of the build neither the dev mode. The error is the following one:
Does anyone know how to fix this? I would really appreciate it.
In order to reproduce it, you can go to https://github.com/kcubero27/react-code-challenge-template/tree/feat/configure-e2e-tests-%2316 and run
npm run dev
as well asnpm run test:e2e:open
. As soon as you try to run the people.cy.ts test, you'll start seeing the error.Beta Was this translation helpful? Give feedback.
All reactions