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

Migration Helper loads endlessly #22461

Closed
Maleckidd opened this issue Jun 22, 2022 · 3 comments · Fixed by #22501
Closed

Migration Helper loads endlessly #22461

Maleckidd opened this issue Jun 22, 2022 · 3 comments · Fixed by #22501
Assignees
Labels
existing workaround stage: needs review The PR code is done & tested, needs review topic: installation Issue during installation or downloading Cypress

Comments

@Maleckidd
Copy link

Current behavior

Hi! After update to latest version 10.2.0 (from 9.1.0) and run 'cypress open', I have clicked button 'Continue to Cypress 10', Migration Helper have been shown, but it's loading endlessly (screenshot). There is no errors in terminal or cypress window
Here is my repo: https://github.com/Maleckidd/CypressExample-OWASPJuiceShop
image

Debug logs

No response

Cypress Version

10.2.0

Package Manager

npm

Operating system

Mac

Other

No response

@Maleckidd Maleckidd added the topic: installation Issue during installation or downloading Cypress label Jun 22, 2022
@cypress-bot cypress-bot bot added the stage: investigating Someone from Cypress is looking into this label Jun 22, 2022
@lmiller1990
Copy link
Contributor

Thanks for the reproduction - I confirmed it's happening on linux, too. I will find out the problem and fix it.

@lmiller1990
Copy link
Contributor

lmiller1990 commented Jun 24, 2022

I found the problem. The migration tool is not respecting when pluginsFile and supportFile point to directories containing index.js. I think pluginsFile and supportFile are supposed to point to files (thus the name) but it looks like, by Node.js default module resolution, directories with index.js also worked in Cypress 9.

I'm fixing the migration helper now. You can wait until the patch is merged and try again, or you can just change your cypress.json to point to the files directly, like this:

{
   "baseUrl": "http://localhost:3000/",
   "integrationFolder": "JuiceShopTests",
   "fixturesFolder": "fixtures",
   "pluginsFile": "plugins/index.js",
   "screenshotsFolder": "screenshots",
   "supportFile": "support/index.js"
}

I made these changes and it works.

@lmiller1990 lmiller1990 added existing workaround stage: ready for work The issue is reproducible and in scope labels Jun 24, 2022
@cypress-bot cypress-bot bot added stage: needs review The PR code is done & tested, needs review and removed stage: investigating Someone from Cypress is looking into this stage: ready for work The issue is reproducible and in scope labels Jun 24, 2022
@Maleckidd
Copy link
Author

thx, workaround works!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
existing workaround stage: needs review The PR code is done & tested, needs review topic: installation Issue during installation or downloading Cypress
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants