Skip to content

[BUG] duplicate-object-key warnings during preview after upgrading to Next.js 16 #1005

@gwen31792

Description

@gwen31792

Describe the bug

Reproduction repo: https://github.com/gwen31792/ehentai-toplist-archive

Running the command pnpm nx preview web on commit 364195e7a6a24f056e1f97221f2f69affb783929 (which upgrades Next.js to 16) results in the following warnings:

▲ [WARNING] Duplicate key "options" in object literal [duplicate-object-key]

    .open-next/server-functions/default/apps/web/handler.mjs:236:105622:
      236 │ ...ta:{...i11,placement:g11}}},options:[c10,d10]},F3&&{name:"shif...
          ╵                                ~~~~~~~

  The original key "options" is here:

    .open-next/server-functions/default/apps/web/handler.mjs:236:105309:
      236 │ ...,middleware:[{name:"offset",options:e10=c10={mainAxis:z2+V2,al...
          ╵                                ~~~~~~~


▲ [WARNING] Duplicate key "options" in object literal [duplicate-object-key]

    .open-next/server-functions/default/apps/web/handler.mjs:236:107271:
      236 │ ...ed:{[m11]:e11,[l11]:f11}}}},options:[i10,j10]},F3&&{name:"flip...
          ╵                                ~~~~~~~

  The original key "options" is here:

    .open-next/server-functions/default/apps/web/handler.mjs:236:105659:
      236 │ ...c10,d10]},F3&&{name:"shift",options:k10=i10={mainAxis:!0,cross...
          ╵                                ~~~~~~~


▲ [WARNING] Duplicate key "options" in object literal [duplicate-object-key]

    .open-next/server-functions/default/apps/web/handler.mjs:236:109368:
      236 │ ...:{placement:c12}}}return{}},options:[l10,m10]},{name:"size",op...
          ╵                                ~~~~~~~

  The original key "options" is here:

    .open-next/server-functions/default/apps/web/handler.mjs:236:107307:
      236 │ ...[i10,j10]},F3&&{name:"flip",options:n10=l10={...Z2},async fn(a...
          ╵                                ~~~~~~~


▲ [WARNING] Duplicate key "options" in object literal [duplicate-object-key]

    .open-next/server-functions/default/apps/web/handler.mjs:236:110839:
      236 │ ...ight?{reset:{rects:!0}}:{}},options:[o2,p2]},R4&&{name:"arrow"...
          ╵                                ~~~~~~~

  The original key "options" is here:

    .open-next/server-functions/default/apps/web/handler.mjs:236:109400:
      236 │ ...ons:[l10,m10]},{name:"size",options:q2=o2={...Z2,apply:({eleme...
          ╵                                ~~~~~~~


▲ [WARNING] Duplicate key "options" in object literal [duplicate-object-key]

    .open-next/server-functions/default/apps/web/handler.mjs:236:111145:
      236 │ ...1,padding:c11}).fn(a11):{}},options:[r2,s2]},dX({arrowWidth:U2...
          ╵                                ~~~~~~~

  The original key "options" is here:

    .open-next/server-functions/default/apps/web/handler.mjs:236:110874:
      236 │ ...:[o2,p2]},R4&&{name:"arrow",options:t2=r2={element:R4,padding:...
          ╵                                ~~~~~~~


▲ [WARNING] Duplicate key "options" in object literal [duplicate-object-key]

    .open-next/server-functions/default/apps/web/handler.mjs:236:111671:
      236 │ ...V(c12)}}}default:return{}}},options:[u3,v3]}]}),[ad2,ae2]=dY(a...
          ╵                                ~~~~~~~

  The original key "options" is here:

    .open-next/server-functions/default/apps/web/handler.mjs:236:111214:
      236 │ ...eight:V2}),J2&&{name:"hide",options:w3=u3={strategy:"reference...
          ╵                                ~~~~~~~


⎔ Starting local server...
[wrangler:info] ✨ Parsed 1 valid header rule.
[wrangler:info] Ready on http://localhost:8787

However, these warnings were not present in the previous commit 167248608045c2afca6fee1c861f18131766bb1c.

Steps to reproduce

NOP

Expected behavior

NOP

@opennextjs/cloudflare version

1.13.1

Wrangler version

4.49.0

next info output

Operating System:
  Platform: linux
  Arch: x64
  Version: #1 SMP PREEMPT_DYNAMIC Thu Jun  5 18:30:46 UTC 2025
  Available memory (MB): 31665
  Available CPU cores: 16
Binaries:
  Node: 24.11.0
  npm: 11.6.1
  Yarn: N/A
  pnpm: 10.23.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

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingtriage

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions