Yarn error: Workspace "@proton/collect-metrics@workspace:^" not found
Environment
- OS: Debian 12 (Bookworm)
- Node.js: v23.11.1
- Yarn: 4.9.1 (Berry)
Steps to Reproduce
-
Clone the repository:
git clone https://github.com/ProtonMail/webclient.git cd webclient -
Ensure you are on the default branch (e.g.
main). -
Follow the README instructions up to “Install dependencies”.
-
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-metricsfolder supposed to be a Git submodule? - Should the README include an explicit
git submodule update --init --recursivestep? - 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.
Looks like we are missing this workspace, I just reverted the commit that introduced the change to run the project locally 6e120889e2aed88392c43792eaf1bf11707bde8d
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
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.
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
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.