-
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
Installation Error: Your Project does not contain a default SupportFile #22929
Comments
@FerdinandFidel thanks for reaching out. There could be a few things causing that error:
Could you run Cypress in debug mode mode and print the entire set of logs here? It would also be helpful if we could see your project or an otherwise minimal reproduction to rule out other config-related problems. |
@tbiethman Yes, it is right,, the folder <project_root>/cypress/support/* is not created by cypress. In other installations, this was generated automatically. I copied the folder from an older installation with e2e.js, but it doesn't work either. Not sure how to run cypress in debug mode with the command line interface? |
Sorry, I gave you the wrong link related to the DEBUG logs: https://docs.cypress.io/guides/references/troubleshooting#Print-DEBUG-logs You just need to set the DEBUG env with the cypress namespace prior to execution. How you do so on windows will depend on what shell you're using. With Powershell, I think you can do
It'd be most helpful if you could provide a minimal project that exhibits the issues you're seeing. We have a test project repo that you can easily fork and modify for that purpose. Here are some tips for providing a Short, Self Contained, Correct, Example. |
Here are the logs: |
What should I do with the fork? The error occurs when Cypress is installed and then the configuration is started with Cypress open. |
With the fork, I'm really just looking for a simple project that exhibits the error you're seeing when you run it. When I pull it down and run it, it will either:
I do see something strange in your logs regarding our config loading process though:
Those args paths aren't anywhere close to correct, which would explain the lookup failure. I'll continue to investigate. |
Oh nice. Yes the fork, is some easy state form the faulty projects, too. |
@FerdinandFidel can you confirm:
I've been unable to recreate the incorrect paths that your logs show, I'm wondering if we're trying to run Cypress in different ways. |
I run the command in powershell: PS C:\Users\F\PhpstormProjects\gl_project_2\frontend\dashboard\node_modules.bin> ./cypress open |
@FerdinandFidel what happens if you are in the
I don't expect this to be highly different but want to rule it out.. |
@AtofStryker Thanks, this works, maybe you give a hint here: https://docs.cypress.io/guides/getting-started/installing-cypress#npm-install - that the app can be opened in different ways, as described here: https://docs.cypress.io/guides/getting-started/opening-the-app. My guide to installation was the video. |
If I understand you correctly, are you saying that |
Yes, that is correct. |
Now that is interesting. Hopefully early next week I can see if I can reproduce this in powershell on a windows machine. I am guessing as a working around in the meantime you are run |
Yes, now i use the npx command in the dashboard directory. |
I created a reproduction repository here. I wasn't able to get the support file issue, but I did get path issues trying to resolve my config. Going to mark this as reproducible/bug. My guess moving forward is that we may not support running directly in the bin directory directly (it might work, but we won't guarantee it). We likely need to update our documentation/videos to a more recent video of cypress CLI that includes using |
Just uninstalled the cypress. Deleted the file and folders it generated and then again run the command to install cypress.
and run "npm run cypress" in the terminal and cypress just ran, and them I click on the component testing and then cypress just setup all the files and folders on my project automatically, and all went good |
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. |
@9inebar , did you try adding // ***********************************************************
// This example support/e2e.ts is processed and
// loaded automatically before your test files.
//
// This is a great place to put global configuration and
// behavior that modifies Cypress.
//
// You can change the location of this file or turn off
// automatically serving support files with the
// 'supportFile' configuration option.
//
// You can read more here:
// https://on.cypress.io/configuration
// ***********************************************************
// Import commands.js using ES2015 syntax:
import './commands'
// Alternatively you can use CommonJS syntax:
// require('./commands') |
I already have both Edit: I just deleted all my cypress files including the config and re-installed from scratch. This was able to remove the error at least. |
I realised I faced the same issue when I added the |
Current behavior
When I try to configure E2E testing in the Cypress environment, I get an error. I click the button to configure and an error appears.
First 'Initializing Config...' is displayed and then the error appears or now the loading circle is displayed all the time. Unfortunately, the help does not help me. What to do here?
Debug logs
No response
Cypress Version
10.3.1
Package Manager
npm
Operating system
Windows
Other
Windows: 10
npm: 8.5.5
node: 16.13.0
The text was updated successfully, but these errors were encountered: