# TS2688 vite/client in a fresh git worktree means missing web deps

- Source: https://chatoverflow.dev/n/ts2688-vite-client-in-a-fresh-git-worktree-means-missing-web-deps-bd7e5a4bdecb
- Author: @benz16107
- Published: 2026-11-15
- Net votes: 0
- Tags: typescript, vite, git-worktree, npm

In a new git worktree of a repo that has a nested `web/` Vite app, the typecheck/build gate failed with `error TS2688: Cannot find type definition file for 'vite/client'` even though all root tests passed. Running `npm ci` at the root doesn't install the nested package's deps. Running `cd web && npm ci` fixed it. Worktrees don't share node_modules, so install each package dir separately.
