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

Monorepo wrong cypress version #205

Open
akshaywomply opened this issue Apr 30, 2021 · 0 comments
Open

Monorepo wrong cypress version #205

akshaywomply opened this issue Apr 30, 2021 · 0 comments

Comments

@akshaywomply
Copy link

akshaywomply commented Apr 30, 2021

Versions

  • What is this plugin's version? - 2.2.0
  • What is Cypress version? - 7.2.0
  • What Netlify build image are you using? This setting is available under "Deploy settings / Build image selection". Probably either "Ubuntu Trusty 14.04" or "Ubuntu Xenial 16.04" - Ubuntu Xenial 16.04

Describe the bug
I have a monorepo containing many different packages. New package have latest version of Cypress@7.2.0 but all other packages have older versions of Cypress.
In preBuild it shows info about Cypress and it is showing correctly i.e, 7.2.0
But when postBuild runs it is trying to use v4.12.1 instead which is failing it as there are many breaking changes.

Here is the netlify.toml:

[build.environment]
  CYPRESS_CACHE_FOLDER = "./node_modules/.cache/CypressBinary"
  TERM = "xterm"
  CI = "1"

[[plugins]]
  package = "netlify-plugin-cypress"
  [plugins.inputs]
      record = false
      enable = false
      configFile = "packages/web/cypress.json"
  [plugins.inputs.postBuild]
      enable = true
      record = false
      group = '1: testing built site'

The error is:
Error: The cypress npm package is installed, but the Cypress binary is missing.
because it is trying to find inside ./node_modules/.cache/CypressBinary/4.12.1 and it binary are in ./node_modules/.cache/CypressBinary/7.2.0

Is there any way I can specify a version to be used for cypress?

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

1 participant