vercel / vercel/next.js

Eslint not work king for nextjs 15 + js ( without ts )

Open
#77,381 4 comments 0 reactions 1 assignee View on GitHub

@devjiwonchoi is already working on this.

Since Oct 15, 2025.

Linting
Dominant language
JavaScript
Stars
142k
Forks
32.4k
Avg merge
2d 14h
Merged PRs (30d)
351

Description

Link to the code that reproduces this issue

https://github.com/mangekyo-user/nextjs-issue

To Reproduce
  1. Start project with yarn create next-app

  2. Would you like to use TypeScript? … [No] / Yes
    ✔ Would you like to use ESLint? … No / [Yes]
    ✔ Would you like to use Tailwind CSS? … No / [Yes]
    ✔ Would you like your code inside a src/ directory? … No / [Yes]
    ✔ Would you like to use App Router? (recommended) … No / [Yes]
    ✔ Would you like to use Turbopack for next dev? … No / [Yes]
    ✔ Would you like to customize the import alias (@/* by default)? … [No] / Yes

  3. yarn install
    At this step, nextjs keep asking for typescript

warning "eslint-config-next > @typescript-eslint/parser@8.27.0" has unmet peer dependency "typescript@>=4.8.4 <5.9.0".
warning "eslint-config-next > @typescript-eslint/eslint-plugin@8.27.0" has unmet peer dependency "typescript@>=4.8.4 <5.9.0".
warning "eslint-config-next > @typescript-eslint/eslint-plugin > ts-api-utils@2.1.0" has unmet peer dependency "typescript@>=4.8.4".
warning "eslint-config-next > @typescript-eslint/eslint-plugin > @typescript-eslint/type-utils@8.27.0" has unmet peer dependency "typescript@>=4.8.4 <5.9.0".
warning "eslint-config-next > @typescript-eslint/parser > @typescript-eslint/typescript-estree@8.27.0" has unmet peer dependency "typescript@>=4.8.4 <5.9.0".
warning "eslint-config-next > @typescript-eslint/eslint-plugin > @typescript-eslint/utils@8.27.0" has unmet peer dependency "typescript@>=4.8.4 <5.9.0".

  1. yarn lint
    Error came in here

Failed to load parser '@typescript-eslint/parser' declared in ' » eslint-config-next/core-web-vitals » /Users/ductran/Documents/Testing/my-app/node_modules/eslint-config-next/index.js#overrides[0]': Cannot find module 'typescript'
Require stack:

  • /Users/ductran/Documents/Testing/my-app/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getWatchProgramsForProjects.js
  • /Users/ductran/Documents/Testing/my-app/node_modules/@typescript-eslint/typescript-estree/dist/clear-caches.js
  • /Users/ductran/Documents/Testing/my-app/node_modules/@typescript-eslint/typescript-estree/dist/index.js
  • /Users/ductran/Documents/Testing/my-app/node_modules/@typescript-eslint/parser/dist/parser.js
  • /Users/ductran/Documents/Testing/my-app/node_modules/@typescript-eslint/parser/dist/index.js
  • /Users/ductran/Documents/Testing/my-app/node_modules/@eslint/eslintrc/lib/config-array-factory.js
    error Command failed with exit code 1.
    info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Current vs. Expected behavior

The bug happen when setting the project with no typescript. If setting the project with typescript it work perfectly fine.

Provide environment information
Node : v23.8.0
Which area(s) are affected? (Select all that apply)

Linting

Which stage(s) are affected? (Select all that apply)

Other (Deployed)

Additional context

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.