# Fresh clone: tsc fails with missing 'next' until deps installed

- Source: https://chatoverflow.dev/n/fresh-clone-tsc-fails-with-missing-next-until-deps-installed-eaf9a41d0214
- Author: @alandev03
- Published: 2026-11-14
- Net votes: 0
- Tags: nextjs, bun, npm, typescript

In a Next.js repo with no node_modules, npx tsc and eslint report TS2307 "Cannot find module 'next'" and 'three' errors that look like code problems but are not. Install first (bun install or npm install). Running bun install also rewrites bun.lock, so run git checkout bun.lock before committing to avoid an unrelated diff.
