WebClients icon indicating copy to clipboard operation
WebClients copied to clipboard

Yarn error: Workspace "@proton/collect-metrics@workspace:^" not found

Open mxcabre opened this issue 7 months ago • 5 comments

Environment

  • OS: Debian 12 (Bookworm)
  • Node.js: v23.11.1
  • Yarn: 4.9.1 (Berry)

Steps to Reproduce

  1. Clone the repository:

    git clone https://github.com/ProtonMail/webclient.git
    cd webclient
    
    
  2. Ensure you are on the default branch (e.g. main).

  3. Follow the README instructions up to “Install dependencies”.

  4. Run:

    yarn install
    

Expected Behavior

All workspaces declared in package.json (including collect-metrics) should be detected and their dependencies installed without errors.

Actual Behavior

Installation fails immediately with:

Error: @proton/collect-metrics@workspace:^: Workspace not found (@proton/collect-metrics@workspace:^)
    at t.getWorkspaceByDescriptor (…/.yarn/releases/yarn-4.9.1.cjs:210:3520)
    …

No additional steps (submodule init, special Yarn version switch, etc.) are mentioned in the README, yet the workspace remains unresolved.

Additional Information / Questions

  • Is the collect-metrics folder supposed to be a Git submodule?
  • Should the README include an explicit git submodule update --init --recursive step?
  • Are there any specific Yarn or Node.js version requirements beyond those in the README?

Any guidance to get the project building on Debian 12 with Yarn Berry would be greatly appreciated.

mxcabre avatar May 15 '25 23:05 mxcabre

Looks like we are missing this workspace, I just reverted the commit that introduced the change to run the project locally 6e120889e2aed88392c43792eaf1bf11707bde8d

cypherpower avatar May 16 '25 12:05 cypherpower

Hi! I see this issue was mentioned as resolved in May when the problematic commit was reverted. However, I'm still encountering the same error on the current main branch:

  • SO: macOS 15.5 ( Darwin Kernel Version 24.5.0)
  • Node.js: v22.13.1
  • Yarn: 4.9.2
 yarn install
➤ YN0000: ┌ Project validation
➤ YN0057: │ proton-drive: Resolutions field will be ignored
➤ YN0057: │ @proton/drive-store: Resolutions field will be ignored
➤ YN0000: └ Completed
➤ YN0000: ┌ Resolution step
➤ YN0001: │ Error: @proton/collect-metrics@workspace:^: Workspace not found (@proton/collect-metrics@workspace:^)
    at t.getWorkspaceByDescriptor (WebClients/.yarn/releases/yarn-4.9.2.cjs:209:3520)
    at t.getCandidates (WebClients/.yarn/releases/yarn-4.9.2.cjs:140:118257)
    at em.getCandidates (WebClients/.yarn/releases/yarn-4.9.2.cjs:141:1311)
    at em.getCandidates (WebClients/.yarn/releases/yarn-4.9.2.cjs:141:1311)
    at WebClients/.yarn/releases/yarn-4.9.2.cjs:209:8420
    at qE (WebClients/.yarn/releases/yarn-4.9.2.cjs:140:54028)
    at dt (WebClients/.yarn/releases/yarn-4.9.2.cjs:209:8400)
    at async Promise.allSettled (index 8)
    at async Uu (WebClients/.yarn/releases/yarn-4.9.2.cjs:140:53356)
➤ YN0000: └ Completed in 0s 312ms
➤ YN0000: · Failed with errors in 0s 318ms

josuejcalazans avatar Aug 19 '25 21:08 josuejcalazans

Same issue here. Sincere request for the reproducible build process. Theoretically, the missing component could have done anything to the existing code base, which means essentially the source is no longer open.

micl2e2 avatar Sep 15 '25 13:09 micl2e2

WebClients on  main [?] via  v22.14.0
❯ yarn install
➤ YN0000: · Yarn 4.10.3
➤ YN0000: ┌ Project validation
➤ YN0057: │ proton-drive: Resolutions field will be ignored
➤ YN0057: │ proton-meet: Resolutions field will be ignored
➤ YN0057: │ @proton/drive-store: Resolutions field will be ignored
➤ YN0000: └ Completed
➤ YN0000: ┌ Resolution step
➤ YN0001: │ Error: @rowsncolumns/charts@workspace:^: Workspace not found (@rowsncolumns/charts@workspace:^)
    at t.getWorkspaceByDescriptor (WebClients/.yarn/releases/yarn-4.10.3.cjs:209:3520)
    at t.getCandidates (WebClients/.yarn/releases/yarn-4.10.3.cjs:140:109205)
    at rm.getCandidates (WebClients/.yarn/releases/yarn-4.10.3.cjs:141:1311)
    at rm.getCandidates (WebClients/.yarn/releases/yarn-4.10.3.cjs:141:1311)
    at WebClients/.yarn/releases/yarn-4.10.3.cjs:209:8420
    at qE (WebClients/.yarn/releases/yarn-4.10.3.cjs:140:45033)
    at mt (WebClients/.yarn/releases/yarn-4.10.3.cjs:209:8400)
    at async Promise.allSettled (index 32)
    at async Uu (WebClients/.yarn/releases/yarn-4.10.3.cjs:140:44361)
➤ YN0000: └ Completed in 0s 260ms
➤ YN0000: · Failed with errors in 0s 265ms

juxuanu avatar Oct 04 '25 13:10 juxuanu

Hi any update on this? I'm trying to upgrade to the new version of proton pass, the aur package is broken and I can't build from source because of this.

willm avatar Oct 27 '25 12:10 willm