question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cypress doesn't load or open its window

See original GitHub issue

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

node:internal/modules/cjs/loader:936
  throw err;
  ^

Error: Cannot find module 'C:\Users\Jolambert'
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:1276:12)
    at loadPreloadModules (node:internal/bootstrap/pre_execution:483: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' ]
}

Cypress Version

10.1.0

Package Manager

yarn

Operating system

Windows

Other

No response

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:3
  • Comments:28 (8 by maintainers)

github_iconTop GitHub Comments

9reactions
lmiller1990commented, Jun 28, 2022

This will be fixed in https://github.com/cypress-io/cypress/pull/22550 which we are going to review and release asap. Thanks for the patience everyone.

3reactions
samp-restoncommented, Jun 14, 2022

I have the same problem.

node:internal/modules/cjs/loader:936
  throw err;
  ^

Error: Cannot find module 'C:\Users\Samuel'
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' ]
}

Can confirm the continuation of the path should be C:\Users\Samuel Preston.… I suspect the space hasn’t been handled properly.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshooting | Cypress Documentation
Open Cypress via cypress open · Go to Developer Tools -> View App Data · This will take you to the directory in...
Read more >
Can't run Cypress Open - Stack Overflow
Solution: Go to your project directory which you installed cypress, in your package.json update the cypress version to the latest , look at ......
Read more >
How To Fix Cypress Crashing Issue In Windows - YouTube
In this video, we will discuss how to fix the cypress crashing issue.New Selenium Batch Starting ... Your browser can't play this video....
Read more >
Cypress — initial setup - Kristijan - Medium
Cypress open window. When running cypress open, it opens window with all tests. Headless, will just run all tests without opening a full...
Read more >
How to handle new browser Tab and Window in Cypress
Step 1: Go to https://alapanme.github.io/testing-cypress.html. Step 2: Click on the 'Try it' button. Step 3: A new window would be opened.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found