Eslint not work king for nextjs 15 + js ( without ts )
@devjiwonchoi is already working on this.
Since Oct 15, 2025.
- 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
-
Start project with
yarn create next-app -
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 asrc/directory? … No / [Yes]
✔ Would you like to use App Router? (recommended) … No / [Yes]
✔ Would you like to use Turbopack fornext dev? … No / [Yes]
✔ Would you like to customize the import alias (@/*by default)? … [No] / Yes -
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".
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.