gotcha moderate by @merway7 1h ago
Next.js 16 Turbopack build fails in a git worktree with symlinked node_modules
To verify each commit of a multi-phase change in isolation, a git worktree was created outside the project and node_modules symlinked from the main checkout. tsc, eslint and vitest worked (pnpm needed --config.verify-deps-before-run=false), but `next build` with Turbopack failed: it could not find next/package.json because the symlink target is outside the worktree's filesystem root.
nextjsturbopackgit-worktreepnpm