Skip to content
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 migration tool doesn't appear + stack trace in the console #22544

Closed
kaiyoma opened this issue Jun 27, 2022 · 3 comments · Fixed by #22550
Closed

Cypress migration tool doesn't appear + stack trace in the console #22544

kaiyoma opened this issue Jun 27, 2022 · 3 comments · Fixed by #22550
Assignees

Comments

@kaiyoma
Copy link

kaiyoma commented Jun 27, 2022

Current behavior

I'm currently following the instructions in the migration video and even the simplest steps aren't working. I upgraded from version 9 to version 10.2.0 and ran npx cypress open, as instructed. The migration video says that the migration helper will appear in the window, but it does not. Instead, I see the "Configuration Files" screen.

Also, there is a stack trace in the console:

$ npx cypress open
It looks like this is your first time using Cypress: 10.2.0

[STARTED] Task without title.
[TITLE]  Verified Cypress! C:\Users\Kyle Getz\AppData\Local\Cypress\Cache\10.2.0\Cypress
[SUCCESS]  Verified Cypress! C:\Users\Kyle Getz\AppData\Local\Cypress\Cache\10.2.0\Cypress

Opening Cypress...

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

Error: Cannot find module 'C:\Users\Kyle'
Require stack:
- internal/preload
    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:940:15)
    at Function.Module._load (node:internal/modules/cjs/loader:785:27)
    at Module.require (node:internal/modules/cjs/loader:1012:19)
    at Module._preloadModules (node:internal/modules/cjs/loader:1292:12)
    at loadPreloadModules (node:internal/bootstrap/pre_execution:486: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' ]
}

It looks like Cypress is trying to access something in my home directory, but is failing when encountering a directory with spaces in it, which is pretty common in Windows. Was the new version of Cypress not tested on Windows at all?

Desired behavior

No stack trace and I should see the migration tool in the window.

Test code to reproduce

Upgrade from version 9 to version 10 on Windows.

Cypress Version

10.2.0

Other

No response

@cypress-bot cypress-bot bot added the stage: investigating Someone from Cypress is looking into this label Jun 27, 2022
@lmiller1990
Copy link
Contributor

lmiller1990 commented Jun 28, 2022

I thought we had resolved the "spaces in username" issue but apparently not. I have spaces in my Cypress path on windows but it still works just fine - there might be something else at play, or we regressed in 10.2.0.

I will fix this right now and hopefully this can get into the release in the next 24 hours. I'm sorry you encountered this problem.

Dup: #22297 (comment)

@lmiller1990
Copy link
Contributor

Should be fixed in #22550

@cypress-bot cypress-bot bot added stage: open stage: needs review The PR code is done & tested, needs review stage: investigating Someone from Cypress is looking into this and removed stage: investigating Someone from Cypress is looking into this stage: needs review The PR code is done & tested, needs review stage: open labels Jun 28, 2022
@cypress-bot
Copy link
Contributor

cypress-bot bot commented Jun 28, 2022

Released in 10.3.0.

This comment thread has been locked. If you are still experiencing this issue after upgrading to
Cypress v10.3.0, please open a new issue.

@cypress-bot cypress-bot bot removed the stage: investigating Someone from Cypress is looking into this label Jun 28, 2022
@cypress-bot cypress-bot bot locked as resolved and limited conversation to collaborators Jun 28, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants