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 have migrated my older project to Vite 6 and I wanted to try Cypress for e2e tests. After installing via npm i cypress --save-dev and running npx cypress open the cypress window is opened I see the loading spinner but in terminal i get
DevTools listening on ws://127.0.0.1:61172/devtools/browser/2f003097-2fcf-41b0-9a91-5717591641cc
node:internal/modules/run_main:123
triggerUncaughtException(
^
TypeError [Error]: value.replace is not a function
at normalizeSlashes (/Users/martinlednar/Library/Caches/Cypress/14.0.0/Cypress.app/Contents/Resources/app/node_modules/ts-node/dist/util.js:62:18)
at Object.getExtendsConfigPath (/Users/martinlednar/Library/Caches/Cypress/14.0.0/Cypress.app/Contents/Resources/app/node_modules/ts-node/dist/ts-internals.js:24:54)
at readConfig (/Users/martinlednar/Library/Caches/Cypress/14.0.0/Cypress.app/Contents/Resources/app/node_modules/ts-node/dist/configuration.js:127:64)
at findAndReadConfig (/Users/martinlednar/Library/Caches/Cypress/14.0.0/Cypress.app/Contents/Resources/app/node_modules/ts-node/dist/configuration.js:50:84)
at create (/Users/martinlednar/Library/Caches/Cypress/14.0.0/Cypress.app/Contents/Resources/app/node_modules/ts-node/dist/index.js:143:69)
at register (/Users/martinlednar/Library/Caches/Cypress/14.0.0/Cypress.app/Contents/Resources/app/node_modules/ts-node/dist/index.js:124:19)
at Object.registerAndCreateEsmHooks (/Users/martinlednar/Library/Caches/Cypress/14.0.0/Cypress.app/Contents/Resources/app/node_modules/ts-node/dist/esm.js:25:49)
at file:///Users/martinlednar/Library/Caches/Cypress/14.0.0/Cypress.app/Contents/Resources/app/node_modules/ts-node/esm/transpile-only.mjs:8:7
at ModuleJob.run (node:internal/modules/esm/module_job:262:25)
at async onImport.tracePromise.__proto__ (node:internal/modules/esm/loader:482:26)
When i tried fresh installation in my Nuxt3 apps, they are using Vite v5.4.11 the Cypress works fine. That's why I tried this version also in my project, but it didn't help.
Also I dont know if it's relevant, but in my project the installation of cypress takes signifcantly more time than in nuxt projects.
Could you suggest what am I doing wrong? Thank you very much for any help
Desired behavior
No response
Test code to reproduce
Don't have any tests and the unfortunately repo is private.
Cypress Version
14.0.0
Node version
22.7.0
Operating System
MacOS 14.7.1
Debug Logs
Other
No response
The text was updated successfully, but these errors were encountered:
MartinLednarLedo
changed the title
cypress open not working in Vite 6 project
cypress open not workin, probably because of Vite 6
Jan 22, 2025
MartinLednarLedo
changed the title
cypress open not workin, probably because of Vite 6
cypress open not working, probably because of Vite 6
Jan 22, 2025
MartinLednarLedo
changed the title
cypress open not working, probably because of Vite 6
cypress open not working
Jan 22, 2025
Hi @MartinLednarLedo. Thank you for opening an issue. I have created a repository with a basic reproduction but I am unable to reproduce. Are you able to help me fill in the blanks?
Current behavior
Hi,
I have migrated my older project to Vite 6 and I wanted to try Cypress for e2e tests. After installing via
npm i cypress --save-dev
and runningnpx cypress open
the cypress window is opened I see the loading spinner but in terminal i getThese are my dependencies
When i tried fresh installation in my Nuxt3 apps, they are using Vite v5.4.11 the Cypress works fine. That's why I tried this version also in my project, but it didn't help.
Also I dont know if it's relevant, but in my project the installation of cypress takes signifcantly more time than in nuxt projects.
Could you suggest what am I doing wrong? Thank you very much for any help
Desired behavior
No response
Test code to reproduce
Don't have any tests and the unfortunately repo is private.
Cypress Version
14.0.0
Node version
22.7.0
Operating System
MacOS 14.7.1
Debug Logs
Other
No response
The text was updated successfully, but these errors were encountered: