Skip to content

fix(desktop): resolve unsatisfiable vite/typescript peer deps - #666

Merged
skevetter merged 2 commits into
mainfrom
deps/fix-desktop-vite-peer-deadlock
Jul 14, 2026
Merged

skevetter merged 2 commits into
mainfrom
deps/fix-desktop-vite-peer-deadlock

Conversation

@skevetter

Copy link
Copy Markdown
Contributor

Summary

main's desktop dependency tree cannot be installed — npm ci fails with ERESOLVE. This went unnoticed because Desktop CI (lint-and-test) is not a required status check, so broken dependency updates merged.

Two independent breaks, both surfaced once npm ci was made to work:

  1. vite peer deadlock — @sveltejs/vite-plugin-svelte@7.2.0 requires vite ^8, but electron-vite@5.0.0 only accepts vite ^5 || ^6 || ^7. No vite version satisfies both. Fixed by pinning vite@7.3.6 and downgrading @sveltejs/vite-plugin-svelte@6.2.4 (peer vite ^6.3 || ^7).
  2. typescript 7 crash — typescript@7.0.2 (the native port, bumped in chore(deps): update dependency typescript to v7 #663) crashes svelte-check@4.7.2, which has no TS 7 support yet (npm run check throws Cannot read properties of undefined (reading 'useCaseSensitiveFileNames')). Fixed by pinning typescript@6.0.3.

Verification

All three Desktop CI steps pass locally against the regenerated lockfile:

  • npm ci — clean install
  • npm run check — 0 errors
  • npm run test — 249 passed

Related

main's desktop dependency tree could not be installed (npm ci failed
with ERESOLVE), which had gone unnoticed because Desktop CI was not a
required check. Two independent breaks:

- @sveltejs/vite-plugin-svelte@7.2.0 requires vite ^8, but electron-vite@5
  only supports vite <=7, so no vite version satisfied both. Pin vite to
  7.3.6 and downgrade vite-plugin-svelte to 6.2.4 (peer vite ^6.3||^7).
- typescript@7.0.2 (native port) crashes svelte-check@4.7.2, which has no
  TS 7 support yet. Pin typescript to 6.0.3.

npm ci, svelte-check, and vitest all pass locally.
@netlify

netlify Bot commented Jul 14, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for devsydev canceled.

Name Link
🔨 Latest commit 92aab50
🔍 Latest deploy log https://app.netlify.com/projects/devsydev/deploys/6a5656140dd49600083611a9

@coderabbitai

coderabbitai Bot commented Jul 14, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 99cf98b0-9e1b-48fb-950b-808300a17014

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@netlify

netlify Bot commented Jul 14, 2026 •

Copy link
Copy Markdown

❌ Deploy Preview for images-devsy-sh failed.

Name Link
🔨 Latest commit 92aab50
🔍 Latest deploy log https://app.netlify.com/projects/images-devsy-sh/deploys/6a5656148c024c0008a5404b

…en majors

Prevent Renovate from re-bumping the packages this PR downgraded back into
an uninstallable state:
- vite <8: electron-vite 5 rejects vite 8
- @sveltejs/vite-plugin-svelte <7: v7 requires vite 8
- typescript <7: svelte-check 4 crashes on TS 7

Scoped to desktop/** so other workspaces are unaffected. Remove these caps
once electron-vite ships stable vite 8 support and svelte-check supports TS 7.
@skevetter

Copy link
Copy Markdown
Contributor Author

Added a commit pinning vite, @sveltejs/vite-plugin-svelte, and typescript below their broken majors in renovate.json (scoped to desktop/**), so Renovate won't re-open a PR that reintroduces the uninstallable configuration. The caps should be removed once electron-vite ships stable vite 8 support and svelte-check supports TypeScript 7.

@skevetter
skevetter merged commit 20700dd into main Jul 14, 2026
23 of 27 checks passed
@skevetter
skevetter deleted the deps/fix-desktop-vite-peer-deadlock branch July 14, 2026 15:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant