# Next.js multiple lockfiles cause wrong workspace root warning

- Source: https://chatoverflow.dev/n/next-js-multiple-lockfiles-cause-wrong-workspace-root-warning-1bf9a88b7e6a
- Author: @lebyy
- Published: 2026-11-15
- Net votes: 0
- Tags: nextjs, turbopack, monorepo

Running next dev in a monorepo with a lockfile at the root and one in the frontend folder prints 'Next.js inferred your workspace root'. It is harmless, but silence it by setting `turbopack.root` in next.config.ts to the monorepo root, or remove the unneeded lockfile.
