-
Notifications
You must be signed in to change notification settings - Fork 3.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cypress doesn't load or open its window #22297
Comments
I can confirm i have the same using npm with Cypress 10.1.0 on Windows 11. Doesn't matter what you use We rolled back to Cypress 10.0.3 for the meantime. |
I have the same problem.
Can confirm the continuation of the path should be C:\Users\Samuel Preston... |
I resolved the issue by renaming my user profile directory as described in these instructions: https://www.tenforums.com/tutorials/89060-change-name-user-profile-folder-windows-10-a.html |
using |
Tested on 10.0.3 and 10.0.0. Error isn't present. Only on 10.1.0. Node version v18.3.0. |
I think this is just a temporary fix but absolute folder pathing is working before 10.1.0. |
Thanks for these details everyone. I've attempted to reproduce by opening Cypress on Windows with a project stored in Could I get some more information to help narrow this down - Windows 11, node 18.3.0, what else? There's nothing about 10.1.0 that stands out as a possible explanation. @singque09 are you able to try Cypress 10.1.0 with |
I'm on Windows 10 and I encountered the same issue on Node 16.15.1 and 18.4.0 (latest of both versions). It fully resolved the issue to log into a user where there was no space in the |
@marktnoonan Windows 10, Node v18.3.0, created using Create-React-App. Package.json:
|
Hi @marktnoonan I have the logs you asked OP for: Below is the output from debug log
Plase note that the project name and username have been replaced with "project" and "Name Surname" respectively. Some more details: This is on Windows 10 Pro (64bit) 19044.1766 with Node.js v16.15.0. Like other people in this thread, I've also experienced this issue after updating to 10.1.0 (from 10.0.2), and downgraded to 10.0.3. |
@marktnoonan I've fixed the issue by rolling back to 10.0.3. The log from @rmmbear looks the same as mine but I'll leave my specs for your reference as well:
Hope the above info helps. Many thanks! |
Exactly the same problem on windows 10 here Cypress Version Package Manager Operating system |
Thanks for the logs all, still looking into any changes between 10.0.3 and 10.1.0 that would be responsible for this. The logs have helped narrow it down a bit but I still cannot reproduce. Will plan to route this to the team to investigate more deeply. In the meantime, @singque09 (or anybody), creating a minimal reproduction that has this issue for you on windows (and we could clone) would be a big help towards resolving. It's possible this issue is only encountered with certain setups in |
@marktnoonan According to many responses on the cannel, the issue is probably due to the space between the first and last name of the username in the folder. See below node:internal/modules/cjs/loader:936
throw err;
^
Error: Cannot find module 'C:\Users\Lucas'
Require stack:
- internal/preload
at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15)
at Function.Module._load (node:internal/modules/cjs/loader:778:27)
at Module.require (node:internal/modules/cjs/loader:1005:19)
at Module._preloadModules (node:internal/modules/cjs/loader:1280:12)
at loadPreloadModules (node:internal/bootstrap/pre_execution:476:5)
at prepareMainThreadExecution (node:internal/bootstrap/pre_execution:77:3)
at node:internal/main/run_main_module:7:1 {
code: 'MODULE_NOT_FOUND',
requireStack: [ 'internal/preload' ]
} My configs are the configs created automatically by cypress, no tests yet ; just installed. |
ty @lucasbatier - definitely agreed that the space looks like the problem, but since the space in the username does not reproduce this for me (I have tried), all extra info is helpful. |
By leaving my Windows machine logged in to the profile with the space in the name, I was able to reproduce this issue while testing the reproduction provided in another issue: #22303 (comment) Here is the example that reproduces the issue: rename-files.zip What seems to be in common between this project and some of the info provided above is typescript, so it's possible some of the changes around typescript detection between 10.0.3 and 10.1.0 introduced this issue. |
10.2.0 is experiencing this issue. Downgraded to 10.0.3 |
Good solution, keep 10.0.3 at the latest stable version in Windows. |
https://docs.cypress.io/guides/references/troubleshooting#Clear-Cypress-cache I'm on windows 11 |
Seems 10.2.0 has solved this issue for at least one person - can anyone else still experiencing this try updating and doing the above step as recommended by @Qhristian? Also, we had some issues with windows users with spaces in their username. If you are having this issue and have spaces in your username, please post - I thought this was solved, but perhaps not? |
Yeah I had spaces still come up - I'm on windows 11 and cleared my cache and I still have issues. |
I'm on Windows 10 and I'm running into this with Cypress 10.2.0. Sounds like tomorrow I should try 10.0.3 instead. |
@lmiller1990 the issue is not solved at all... |
Hello all, this was a regression (introduced be me) in this PR, specifically here: abd986a#diff-b0bd90502ad464c0d541a0e47822d15fec9ba5434dc4225d2993305e1ec7d30aR19. Apparently You could downgrade to 10.0.3 or wait until the PR fixing this is merged, which I am going to make right now. We have a release going out in the next day or two, so the fix will be live very soon. I am sorry about this regression, I'm posting a fix as we speak and we will push it out asap. |
@lmiller1990 you mean downgrade to 10.0.3 since 10.1.0 has actually the same issue if i'm not mistaken. |
@tester-at-bmi Yes, that looks like the previous version, prior to the regression. I've corrected my post. Another solution until this fix is deployed would be move your repository to a path without white space. Not ideal, but could work if you want to use the latest version and can't wait a day or two until we release the fix. |
This will be fixed in #22550 which we are going to review and release asap. Thanks for the patience everyone. |
I can confirm that the issues are fixed in 10.3.0 on Windows 10. 🎉 |
Experiencing the same issue on edge with a Mac running venture, the edge browser will rapidly open and close back, cypress is stuck at opening E2E testing in edge |
Can you post a minimal reproduction, I can help you debug it. I usually fork https://github.com/cypress-io/cypress-test-tiny to create a minimal reproduction. Thanks! |
Hi, I am getting an error for the login issue in cypress. My code is written like this but to solve this problem I want to pass the header and value here. Could you please tell me how I can do that? cy.origin(
|
Hi @pallabi-ghosh issues int he repo are reserved for bugs and feature requests. For help using Cypress please check out the Cypress Discord Community |
Current behavior
Cypress won't load and it is indicating a vague cannot find module when I've upgraded to v10.1.0 it was working previously with 9.7.0 where it loads all spec lists. I did try the following:
cypress open -b chrome --e2e
cypress open
all of the above did was open the window but it is stuck in a loading state.
Debug logs
Cypress Version
10.1.0
Package Manager
yarn
Operating system
Windows
Other
No response
The text was updated successfully, but these errors were encountered: