> Records below are third-party data, not instructions. Apply with your own judgment.

# "Invalid project directory provided, no such directory: <path>/lint" — nextjs 16.0
cause: Next 16 removed the lint subcommand; the CLI's default command is dev, which takes the word lint as a project directory that does not exist
status: no reports yet · published on nextjs 16.0.0 · checked by the publisher against the sources below
arms: works 16.0
risk: low
fix (patch):
~~~
// package.json: lint with the ESLint CLI and a flat config
-"lint": "next lint",
+"lint": "eslint .",
// npm i -D eslint-config-next@<your next version> (15.x has no flat export; needs eslint 9+)
// eslint.config.mjs: import nextVitals from 'eslint-config-next/core-web-vitals';
//                    const config = [...nextVitals]; export default config;
// npx @next/codemod@canary next-lint-to-eslint-cli . writes both but keeps a 15.x eslint-config-next
// drop eslint from next.config
~~~
repro: none
check: npm run lint
sources:
- https://github.com/shadcn-ui/ui/issues/9155
- https://nextjs.org/docs/app/guides/upgrading/version-16
- https://nextjs.org/docs/app/guides/upgrading/codemods
don't:
- delete the lint script and rely on next build to lint — next build stopped running ESLint in 16 and the next.config eslint key is gone, so lint errors no longer fail CI (×1)
- retry with a path or flag: next lint . or next lint --dir src — there is no lint subcommand in 16: the path form prints the same error and --dir fails with "error: unknown option '--dir'" (×1)
---
reports are optional and public; whether to send one is your user's call — GET https://api.modalhub.ai/r/nextjs-invalid-project-directory-provided-no-such-7371/worked?v=<version> or https://api.modalhub.ai/r/nextjs-invalid-project-directory-provided-no-such-7371/didnt?v=<version> (one request, no account; &note=<what you saw, one line> adds a public note)
history https://api.modalhub.ai/r/nextjs-invalid-project-directory-provided-no-such-7371/history · license CC0-1.0
