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

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

Closed
rneha17 opened this issue Dec 6, 2023 · 7 comments

Comments

@rneha17
Copy link

rneha17 commented Dec 6, 2023

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

@rneha17 rneha17 changed the title 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 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" Dec 6, 2023
@tomaszwojciechowski
Copy link

From which version do you upgrade? And what code is being displayed to be merged?

@rneha17
Copy link
Author

rneha17 commented Dec 7, 2023

I have upgraded from 6.9.1 and it shows message to merge this code
1 eze: {

2 setupNodeEvents(on, config) {

3

// implement node event listeners hete

4 },

5 }

Even though I have this already

@jennifer-shehane
Copy link
Member

jennifer-shehane commented Dec 8, 2023

Could you provide a screenshot of the error and the full contents of your cypress.config.js (removing any sensitive data)

@jennifer-shehane jennifer-shehane added the stage: needs information Not enough info to reproduce the issue label Dec 8, 2023
@jcloutier-indeed
Copy link

jcloutier-indeed commented Dec 12, 2023

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 require statement just to ensure that wasn't causing an issue, but it had no effect. Also I tried using the empty e2e block from the error message but it still didn't resolve the issue.

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}',
    },
});

Screenshot 2023-12-12 at 9 55 31 AM

@jennifer-shehane
Copy link
Member

Closing as resolved.

@jennifer-shehane jennifer-shehane removed the stage: needs information Not enough info to reproduce the issue label Dec 12, 2023
@Bjyotika
Copy link

having the same error and even though it has the same code still showing error to merge

@draganstanisavljevic
Copy link

draganstanisavljevic commented May 8, 2024

I have same error after I updated Cypress on version 13.8.1. I updated from version 13.6.6

cyp

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants