nextjs - ✅(Solved) Fix Bug: ESLint Not Triggering Realtime Errors in Next.js 15.5.6 [1 pull requests, 6 comments, 3 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
vercel/next.js#86449Fetched 2026-04-08 02:10:57
View on GitHub
Comments
6
Participants
3
Timeline
22
Reactions
0
Assignees
Timeline (top)
commented ×6mentioned ×3subscribed ×3closed ×2

ESLint fails to show real-time errors and warnings in VSCode editor when working with Next.js 15.5.6 components, even when code clearly violates linting rules. Additionally, Next.js build process incorrectly reports ESLint as not installed or undetectable when using flat ESLint config with pnpm.

Error Message

  1. Build failures with misleading error messages about ESLint not being installed
  • Build fails with false "ESLint not installed" error // ⚠️ Expected: ESLint should warn that x is unused. // ❌ Actual: No lint error or warning appears in the editor.

Root Cause

ESLint fails to show real-time errors and warnings in VSCode editor when working with Next.js 15.5.6 components, even when code clearly violates linting rules. Additionally, Next.js build process incorrectly reports ESLint as not installed or undetectable when using flat ESLint config with pnpm.

Fix Action

Fix / Workaround

Additional Context

  • Reproducible in fresh projects
  • Started after Next.js 15.5.x upgrade
  • Not fixed by clearing cache
  • Affects both macOS and Windows

PR fix notes

PR #86469: Fix: Improve ESLint realtime detection for IDE integration (Issue #86…

Description (problem / solution / changelog)

…449)

Enhanced ESLint configuration to improve realtime error detection in IDEs (Issue #86449)

<!-- Thanks for opening a PR! Your contribution is much appreciated. To make sure your PR is handled as smoothly as possible we request that you follow the checklist sections below. Choose the right checklist for the change(s) that you're making: ## For Contributors ### Improving Documentation - Run `pnpm prettier-fix` to fix formatting issues before opening the PR. - Read the Docs Contribution Guide to ensure your contribution follows the docs guidelines: https://nextjs.org/docs/community/contribution-guide ### Fixing a bug - Related issues linked using `fixes #number` - Tests added. See: https://github.com/vercel/next.js/blob/canary/contributing/core/testing.md#writing-tests-for-nextjs - Errors have a helpful link attached, see https://github.com/vercel/next.js/blob/canary/contributing.md ### Adding a feature - Implements an existing feature request or RFC. Make sure the feature request has been accepted for implementation before opening a PR. (A discussion must be opened, see https://github.com/vercel/next.js/discussions/new?category=ideas) - Related issues/discussions are linked using `fixes #number` - e2e tests added (https://github.com/vercel/next.js/blob/canary/contributing/core/testing.md#writing-tests-for-nextjs) - Documentation added - Telemetry added. In case of a feature if it's used or not. - Errors have a helpful link attached, see https://github.com/vercel/next.js/blob/canary/contributing.md ## For Maintainers - Minimal description (aim for explaining to someone not on the team to understand the PR) - When linking to a Slack thread, you might want to share details of the conclusion - Link both the Linear (Fixes NEXT-xxx) and the GitHub issues - Add review comments if necessary to explain to the reviewer the logic behind a change ### What? ### Why? ### How? Closes NEXT- Fixes # -->

Changed files

  • eslint.config.mjs (modified, +1/-0)
RAW_BUFFERClick to expand / collapse

Description

ESLint fails to show real-time errors and warnings in VSCode editor when working with Next.js 15.5.6 components, even when code clearly violates linting rules. Additionally, Next.js build process incorrectly reports ESLint as not installed or undetectable when using flat ESLint config with pnpm.

Reproduction Link

https://github.com/jsdev-robin/munza-client/blob/v-0.1.4/apps/admin/src/app/page.tsx

Current Behavior

  1. No real-time ESLint feedback in VSCode editor for obvious violations (e.g., unused variables)
  2. Build failures with misleading error messages about ESLint not being installed
  3. Inconsistent ESLint detection between development and production builds

Expected Behavior

  1. ✅ ESLint should show real-time errors and warnings in VSCode
  2. ✅ Next.js should correctly detect ESLint when installed via pnpm
  3. ✅ Build should only fail on actual ESLint errors, not configuration issues
  4. ✅ Clear documentation for flat ESLint config with Next.js 15+

Current Behavior

  • No real-time ESLint warnings in editor
  • Build fails with false "ESLint not installed" error
  • ESLint rules not enforced during development

Expected Behavior

  • Real-time ESLint errors in VSCode
  • Build only fails on actual lint errors
  • Proper ESLint detection with pnpm

Environment

  • Next.js: 15.5.6
  • Node.js: 20.x
  • Package Manager: pnpm
  • OS: Windows 10

Affected Areas

  • next build
  • ESLint integration
  • Development server linting

Additional Context

  • Reproducible in fresh projects
  • Started after Next.js 15.5.x upgrade
  • Not fixed by clearing cache
  • Affects both macOS and Windows

Code Example

const page = () => {
  const x = 'I am X';

  // ⚠️ Expected: ESLint should warn that `x` is unused.
  // ❌ Actual: No lint error or warning appears in the editor.

  return <div>page</div>;
};

export default page;

extent analysis

TL;DR

Check the ESLint configuration and ensure that it is properly integrated with the Next.js project, as the issue might be related to the flat ESLint config and pnpm usage.

Guidance

  • Verify that the .eslintrc file is correctly configured and that the eslint package is installed as a dev dependency using pnpm.
  • Check the VSCode settings to ensure that the ESLint extension is enabled and configured to use the project's ESLint configuration.
  • Try running pnpm run lint to see if ESLint works correctly from the command line, which can help determine if the issue is specific to the VSCode integration.
  • Review the Next.js documentation for any specific requirements or recommendations for using ESLint with pnpm.

Example

No specific code example is provided, as the issue seems to be related to the configuration and setup of ESLint with Next.js and pnpm.

Notes

The issue might be related to the upgrade to Next.js 15.5.x, and it's worth checking the release notes and documentation for any changes that could affect ESLint integration.

Recommendation

Apply workaround by checking and adjusting the ESLint configuration and VSCode settings to ensure proper integration with the Next.js project, as the issue seems to be related to the configuration and setup rather than a specific version issue.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING