-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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 never loads - blank GUI during cypress open #9572
Comments
I've seen this before on Windows and I can't find the issue. I feel like people have reported their local antivirus software interfering, perhaps with the AppData we use to load. Are you using an antivirus? Can you disable and see if that resolved the issue? |
I have tried with disabled virus protection and nothing changed. The thing is that I have migrated to yarn 2 with my project, when I tried to run cypress on yarn 1 project version it seems to be working just fine. |
I seem to have similar issues on windows 10. No antivirus expect for windows defender and the whole project is excluded.
|
Ok, for me adding |
I am trying to open the packages/desktop-gui folder with cypress. When opening it using my globally installed Cypress, it does work (using yarn v1). However, when running |
Just providing a bit of information that may be helpful in debugging or to someone else, I only see this issue when I set the the nodeVersion to system in cypress.json. I am using yarn 1 and Cypress 6.2.1, system node version is 14.15.1. If I set the nodeVersion back to bundled it loads fine. Unfortunately I need it to run with the system nodeVersion for some of my tests. |
@narsters I'm unable to recreate it by just setting the NodeVersion to 14.15.1 - using yarn. Likely some other setup may be involved. Can you provide your plugins file? Any preprocessors? Test files to recreate?
Loads fine. |
I am very new to Cypress testing, so maybe I did set up something weird, but here is my setup. My app is a standard create-react-app. I set the nodeVersion to system in cypress.json and run cypress with the following command: yarn run cypress open. If nodeVersion is set to "bundled", cypress opens and runs no problem, if I set it to "system", I get the infinite spinner. I am trying to use system because cypress is not happy with node-sass (which according to documentation should work with the bundled version, but it is not and I was just hoping to test with the system node version). cypress.json
cypress/plugins/index.js /// <reference types="cypress" />
const findWebpack = require('find-webpack')
const webpackPreprocessor = require('@cypress/webpack-preprocessor');
/**
* @type {Cypress.PluginConfig}
*/
module.exports = (on, config) => {
// `on` is used to hook into various events Cypress emits
// `config` is the resolved Cypress config
const webpackOptions = findWebpack.getWebpackOptions();
if (!webpackOptions) {
throw new Error('Could not find Webpack in this project 😢');
}
const cleanOptions = {
reactScripts: true,
};
findWebpack.cleanForCypress(cleanOptions, webpackOptions);
const options = {
webpackOptions,
watchOptions: {},
};
on('file:preprocessor', webpackPreprocessor(options));
} |
Any update on this issue? I got the similar problem, the difference is that "cypress open" open correct first time, after it is closed and trying to re-open, it always open with blank UI, no error in debug message. |
Not sure if it helps, but it seems to be stuck after initializing plugins for me:
It seems like the The reason might be the child process (pluginsProcess) failing to execute
Can't really find the root cause, though. For me, this only happens when running cypress from the source repository, when installing cypress via |
Oh nvm. Still happens to me and I don't know how to fix it. Windows 10, Create React app, yarn |
Is this still an issue with the newest cypress? We've just switched to yarn2 and ran into this, wondering if upgrading to cypress 8.x, which apparently has fixed some yarn2 related issues, would fix this. |
I also have this issue - gui never opens. Reproducing here what I entered on Stack Overflow a few days ago (no replies): Installed cypress.io for the first time on Windows Server 2019. Installed using npm, install seems fine, no errors. c:\Automation\cypress>node_modules.bin\cypress verify √ Verified Cypress! C:\Users\huw.watkins\AppData\Local\Cypress\Cache\9.2.1\Cypress On running cypress open, a window is opened with title Cypress but never populated with anything, just get an infinite blue spinner. Set debug, showing no error or warnings. I have looked at all the questions on Stack Overflow which describe a similar issue with Windows 10 - tried ALL the suggestions (20+ of them) - none worked - just wondering if anyone has seen this specifically with Windows Server 2019? |
Cypress 9.5.1 fixed it for me, with #19792. |
Unfortunately upgrading to 9.5.1 didn't fix the issue for me. I am wondering if it has something to do with running in a Citrix Virtual PC environment |
Also, on upgrading to 10.3, the migration tool tries to run a job in a GUI window which hangs, so the migration cannot be completed. |
This issue has not had any activity in 180 days. Cypress evolves quickly and the reported behavior should be tested on the latest version of Cypress to verify the behavior is still occurring. It will be closed in 14 days if no updates are provided. |
This issue has been closed due to inactivity. |
Current behavior
Cypress gui is loading and never ends :(
I have tried to clear the project yarn files, yarn cache etc. and nothing helped
Debug logs
Download method
Operating System
Other
The text was updated successfully, but these errors were encountered: