percy / cli

The Percy CLI is used to interact with, and upload snapshots to, percy.io via the command line.
https://docs.percy.io/docs/cli-overview
70 stars 43 forks source link

post-install error with 1.0.0 #856

Closed Dhaulagiri closed 2 years ago

Dhaulagiri commented 2 years ago

The problem

Our CI builds stop passing today upon release of @percy/cli@1.0.0. See below for details.

Details

Debug logs

In a brand new ember app

~/c/w/ui-test (master|✚3…) $ yarn add -D @percy/cli
yarn add v1.22.18
[1/5] πŸ”  Validating package.json...
[2/5] πŸ”  Resolving packages...
[3/5] 🚚  Fetching packages...
[4/5] πŸ”—  Linking dependencies...
[5/5] πŸ”¨  Building fresh packages...
error /Users/Dhaulagiri/code/work/ui-test/node_modules/@percy/core: Command failed.
Exit code: 1
Command: node ./post-install
Arguments: 
Directory: /Users/Dhaulagiri/code/work/ui-test/node_modules/@percy/core
Output:
node:internal/modules/cjs/loader:936
  throw err;
  ^

Error: Cannot find module '/Users/Dhaulagiri/code/work/ui-test/node_modules/@percy/core/post-install'
    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15)
    at Function.Module._load (node:internal/modules/cjs/loader:778:27)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:77:12)
    at node:internal/main/run_main_module:17:47 {
  code: 'MODULE_NOT_FOUND',
  requireStack: []
}

Code to reproduce issue

Failed CI run

katerberg commented 2 years ago

This appears to be a duplicate of #855 but I can confirm this is happening for me as well.

SebasG22 commented 2 years ago

+1 This is happening in our CI too

djones commented 2 years ago

Hi everyone, sorry about this and thanks for reporting. We are aware of this issue and are currently working on a fix. Subscribe to the thread for updates.

wwilsman commented 2 years ago

Sorry about this everybody! See #858 for an explanation πŸ˜…

Give v1.0.1 a try (I had to invalidate my cache cause yarn kept pulling 1.0.0)

SebasG22 commented 2 years ago

@wwilsman It worked for me :) Thanks

katerberg commented 2 years ago

1.0.1 has solved this for us!

I believe this can be closed.

Dhaulagiri commented 2 years ago

Same. Thanks for the quick response on this!

mattdell commented 2 years ago

Disregard. I think I have a seperate issue.