Closed mosofsky closed 2 years ago
That error message looks similar to the one I got in https://github.com/percy/cli/issues/756, which was also introduced when upgrading to that version of the percy cli.
@nyghtly-derek yes it does. We were both using @percy/cli 1.0.0-beta.74. But in my case, it seems like run got to line 11 but it only got to line 9 in yours, right?
Yes, they are different in the way that you point out. How strange.
The problem
Upon upgrading from "@percy/cypress": "^2.3.1" to "@percy/cypress": "^3.0.0", I found that "@percy/cli": "^1.0.0-beta.74" was added to my package.json by the instructions at https://docs.percy.io/docs/cypress#upgrading-from-v2. However, on my Gitlab CI pipeline, the command
percy build:finalize
fails as follows:To be clear, when I was on "@percy/cypress": "^2.3.1", I did not call
percy build:finalize
but ratherpercy finalize --all
but I suspect that needed to be migrated topercy build:finalize
based on the documentation at https://github.com/percy/cli/tree/v1.0.0-beta.74/packages/cli-build#readme.I checked https://docs.percy.io/docs/debugging-sdks but there was nothing there about this exception.
Environment
@percy/cli
version: 1.0.0-beta.74Details
From what I can tell, the failure on line 11 of run corresponds to this code https://github.com/percy/cli/blob/02baf61a49f09fec97114553f7f2ef7943388920/packages/cli/bin/run :
Maybe it's supposed to come from https://github.com/percy/cli/blob/7dff31566f0278de9653a2a63b2474d79b5c373e/packages/cli/src/index.js 👍
And update.js is here https://github.com/percy/cli/blob/7dff31566f0278de9653a2a63b2474d79b5c373e/packages/cli/src/update.js
Lastly, checkForUpdate is defined here: https://github.com/percy/cli/blob/7dff31566f0278de9653a2a63b2474d79b5c373e/packages/cli/src/update.js#L66
Also, on my local Mac, I was able to navigate to node_modules/@percy/cli/dist/update.js and see checkForUpdate was defined as follows:
Code to reproduce issue