nextjs - 💡(How to fix) Fix Next16 Modal Interception is broken [8 comments, 5 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#86315Fetched 2026-04-08 02:11:30
View on GitHub
Comments
8
Participants
5
Timeline
19
Reactions
4
Author
Assignees
Timeline (top)
commented ×8subscribed ×5mentioned ×2assigned ×1

Code Example

Operating System:
  Platform: darwin
  Arch: arm64
  Version: Darwin Kernel Version 24.6.0: Mon Jul 14 11:30:29 PDT 2025; root:xnu-11417.140.69~1/RELEASE_ARM64_T6000
  Available memory (MB): 32768
  Available CPU cores: 10
Binaries:
  Node: 24.11.0
  npm: 11.6.1
  Yarn: N/A
  pnpm: 10.22.0
Relevant Packages:
  next: 16.0.3 // Latest available version is detected (16.0.3).
  eslint-config-next: N/A
  react: 19.2.0
  react-dom: 19.2.0
  typescript: 5.9.3
Next.js Config:
  output: N/A
RAW_BUFFERClick to expand / collapse

Link to the code that reproduces this issue

https://github.com/khuezy/next16-interceptionbug

To Reproduce

The reproduction steps are in the Github repo

Current vs. Expected behavior

Current: Modal interceptions fails during dev mode after editing the modal files. Expected: Modal interception works during development.

Provide environment information

Operating System:
  Platform: darwin
  Arch: arm64
  Version: Darwin Kernel Version 24.6.0: Mon Jul 14 11:30:29 PDT 2025; root:xnu-11417.140.69~1/RELEASE_ARM64_T6000
  Available memory (MB): 32768
  Available CPU cores: 10
Binaries:
  Node: 24.11.0
  npm: 11.6.1
  Yarn: N/A
  pnpm: 10.22.0
Relevant Packages:
  next: 16.0.3 // Latest available version is detected (16.0.3).
  eslint-config-next: N/A
  react: 19.2.0
  react-dom: 19.2.0
  typescript: 5.9.3
Next.js Config:
  output: N/A

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

Turbopack

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

next dev (local)

Additional context

Looks like it also breaks via --webpack so it's not a turbopack issue.

extent analysis

TL;DR

The issue with modal interceptions failing during dev mode in Next.js 16.0.3 may be related to a configuration or compatibility issue, and trying a different build or configuration approach might resolve the issue.

Guidance

  • Verify if the issue persists when using the --webpack flag, as mentioned in the additional context, to isolate if it's specific to Turbopack or a broader configuration issue.
  • Check the Next.js documentation and release notes for version 16.0.3 to see if there are any known issues or configuration changes that could be affecting modal interceptions.
  • Consider testing the application with a previous version of Next.js to see if the issue is specific to version 16.0.3.
  • Review the code in the provided GitHub repository to ensure that the modal interception logic is correctly implemented and compatible with the current version of Next.js.

Notes

The provided information suggests that the issue might not be specific to Turbopack, given that it also occurs with the --webpack flag. This indicates a potential configuration or compatibility issue that needs further investigation.

Recommendation

Apply workaround: Given the uncertainty around the root cause, applying a workaround such as using a previous version of Next.js or adjusting the configuration to use Webpack instead of Turbopack might provide a temporary solution until the issue can be fully resolved.

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

nextjs - 💡(How to fix) Fix Next16 Modal Interception is broken [8 comments, 5 participants]