You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I scaffolded a new application with npm init vue@latest, and during the prompts, I selected YES to Cypress. After it was done, I went into the directory, ran npm i, and then tried:
npm run test:e2e
When I did, it hung at:
I asked around on the Cypress discord, and did some digging, and noticed the following.
If I did npm run dev, of course the Vue app worked fine. But if I ran the preview task as created during scaffolding, vite preview --port 4173, it did NOT build the Vue app. I'd hit the URL and get, "Cannot GET /" (or something like that ;).
If I remove 'preview' from the command:
"preview": "vite --port 4173",
I can then run the test:e2e task ok.
So there's definitely a workaround, but "out of the box", it seems like the scaffolded scripts may be wrong?
The text was updated successfully, but these errors were encountered:
I scaffolded a new application with
npm init vue@latest, and during the prompts, I selected YES to Cypress. After it was done, I went into the directory, rannpm i, and then tried:When I did, it hung at:
I asked around on the Cypress discord, and did some digging, and noticed the following.
If I did
npm run dev, of course the Vue app worked fine. But if I ran thepreviewtask as created during scaffolding,vite preview --port 4173, it did NOT build the Vue app. I'd hit the URL and get, "Cannot GET /" (or something like that ;).If I remove 'preview' from the command:
I can then run the
test:e2etask ok.So there's definitely a workaround, but "out of the box", it seems like the scaffolded scripts may be wrong?
The text was updated successfully, but these errors were encountered: