Skip to main content
GoodFirstPicks
DashboardIssuesReposLeaderboard

GoodFirstPicks by Leaveitblank © 2026

CreatorRequest a RepoPrivacy PolicyTerms of Service
[Bug]: `manifest.ts` breaks `HMR` in Next.js 16.2 | GoodFirstPicks

[Bug]: `manifest.ts` breaks `HMR` in Next.js 16.2

vercel/next.js 8 comments 4d ago
View on GitHub
mediumopenScope: somewhat clearSkill match: maybeNext.jsTypeScriptReact

Why this is a good first issue

HMR breaks in Next.js 16.2 when using `manifest.ts`, but reports vary on root cause.

AI Summary

The issue involves Hot Module Replacement (HMR) failing in Next.js 16.2 when a `manifest.ts` file is present. While removing `manifest.ts` resolves the issue for some, others report HMR issues persist even without it. The inconsistency in reproduction and unclear root cause make this a medium-difficulty issue.

Issue Description

Link to the code that reproduces this issue

https://github.com/abhishekmardiya/hmr-cache-breakage-reproduction.git

To Reproduce

Using a manifest.ts file in Next.js 16.2 causes Hot Module Replacement (HMR) to stop working correctly.

After making code changes:

  • HMR is not triggered
  • UI does not update
  • Even a hard reload (Cmd + Shift + R) does not reflect the latest changes

The only way to see updates is by deleting the .next build folder, after which the changes appear correctly.


Steps to Reproduce

  1. Create a Next.js app using version 16.2
  2. Add a manifest.ts file (App Router setup)
  3. Start the development server (next dev)
  4. Make any UI or code change

Reproduction Video: A screen recording demonstrating the issue can be found here: https://jumpshare.com/s/5HjDdFRVysckgw20tfko

Current vs. Expected behavior

Expected Behavior

  • HMR should trigger automatically
  • UI should reflect the latest changes instantly
  • Hard reload should always fetch the latest code

Current Behavior

  • No HMR updates occur
  • UI remains stale even after hard reload
  • Changes only appear after deleting .next and restarting

Provide environment information

Platform: darwin
  Arch: arm64
  Version: Darwin Kernel Version 25.4.0: Thu Mar 19 19:33:09 PDT 2026; root:xnu-12377.101.15~1/RELEASE_ARM64_T8112
  Available memory (MB): 16384
  Available CPU cores: 8
Binaries:
  Node: 24.14.1
  npm: 11.11.0
  Yarn: N/A
  pnpm: N/A
Relevant Packages:
  next: 16.2.1 // Latest available version is detected (16.2.1).
  eslint-config-next: N/A
  react: 19.2.4
  react-dom: 19.2.4
  typescript: 5.9.3
Next.js Config:
  output: N/A

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

Not sure

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

next dev (local)

Additional context

This issue did not occur before Next.js 16.2

  • Removing manifest.ts restores normal HMR behavior
  • **Tested with the lat

GitHub Labels

Turbopack

Want to work on this?

Claim this issue to let others know you're working on it. You'll earn 20 points when you complete it!

Risk Flags

  • reproduction inconsistency
  • multiple reports of different behaviors
Loading labels...

Details

Points20 pts
Difficultymedium
Scopesomewhat clear
Skill Matchmaybe
Test Focusedno