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

code-coverage execa does not support Node.js 8.0.0+ #143

Closed
shijiu1919zyx opened this issue Feb 26, 2020 · 2 comments
Closed

code-coverage execa does not support Node.js 8.0.0+ #143

shijiu1919zyx opened this issue Feb 26, 2020 · 2 comments

Comments

@shijiu1919zyx
Copy link

shijiu1919zyx commented Feb 26, 2020

my code is as follows

module.exports = (on, config) => {
  on('file:preprocessor', cucumber());
  on('task', require('@cypress/code-coverage/task'));
  config.env.API_ENVENV = process.env.API_ENVENV;
  return config;
};

But got the following error
ii

@sherry007
Copy link

well, i've had this problem too before. You should check the version of your cypress, and upgrade it to the latest one

@jennifer-shehane
Copy link
Member

jennifer-shehane commented Feb 26, 2020

@shijiu1919zyx What Node.js version are you using?

We encountered a bug for installing Cypress in the 4.0+ version of Cypress where we are inadvertently not supported Node 8.0.0-8.12.0. cypress-io/cypress#6512 (this will be fixed in next release)

This looks to be the exact same issue with the code-coverage plugin. The execa dep of 4.0.0 for this plugin requires a minimum Node version of 10.0.0.

@bahmutov I think we should roll back execa dep for this plugin. We should support the same Node version for our own plugins as we do for Cypress (aka 8.0.0), so roll back execa to 1.0.0

For now, you can upgrade to use Node version 10.0.0. I couldn't actually even find a previous version of this plugin that was ever using execa 1.0.0.

@jennifer-shehane jennifer-shehane changed the title code-coverage execa code-coverage execa does not support Node.js 8.0.0+ Feb 26, 2020
@jennifer-shehane jennifer-shehane closed this as not planned Won't fix, can't repro, duplicate, stale Apr 27, 2024
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

Successfully merging a pull request may close this issue.

3 participants