-
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
I have upgraded my Cypress Version to 12.17.4 and on running cypress open it is showing error - "Please merge the code below with your existing cypress.config.js" #28474
Comments
From which version do you upgrade? And what code is being displayed to be merged? |
I have upgraded from 6.9.1 and it shows message to merge this code 2 setupNodeEvents(on, config) { 3 // implement node event listeners hete 4 }, 5 } Even though I have this already |
Could you provide a screenshot of the error and the full contents of your cypress.config.js (removing any sensitive data) |
EDIT: You can disregard the info below, this ended up being a config issue on my part. During the migration cypress converted the json config tiles to into ts and I forgot to update the package.json file to set the config properly. As a result the command was still trying to use the non-existent json files. Once this was corrected it started working as expected. @jennifer-shehane I am receiving this issue as well on version 13.6.x with node 18 LTS. I tried disabling the import {defineConfig} from 'cypress';
export default defineConfig({
video: false,
viewportHeight: 12000,
viewportWidth: 8000,
pageLoadTimeout: 300000,
defaultCommandTimeout: 300000,
requestTimeout: 300000,
responseTimeout: 300000,
e2e: {
retries: 3,
// We've imported your old cypress plugins here.
// You may want to clean this up later by importing these.
setupNodeEvents(on, config) {
return require('./cypress/plugins/index.ts').default(on, config);
},
specPattern: 'cypress/e2e/**/*.{js,jsx,ts,tsx}',
},
}); |
Closing as resolved. |
having the same error and even though it has the same code still showing error to merge |
Current behavior
I have upgraded my Cypress Version to 12.17.4 and on running cypress open it is showing to error - Please merge the code below with your existing cypress.config.js even though I have this code already in my cypress.config.js file
Desired behavior
No response
Test code to reproduce
I have upgraded my Cypress Version to 12.17.4 and on running cypress open it is showing to error - Please merge the code below with your existing cypress.config.js even though I have this code already in my cypress.config.js file
Cypress Version
12.17.4
Node version
20.10.0
Operating System
64-bit
Debug Logs
No response
Other
No response
The text was updated successfully, but these errors were encountered: