Skip to content

[BUG] Unexpected loadManifest calls for new manifest files introduced in Next.js 16.2.0-canary #1141

@chargome

Description

@chargome

Describe the bug

When building and previewing a Next.js app with next@canary (16.2.0-canary.53+) using @opennextjs/cloudflare, all dynamic
routes return 500 Internal Server Error at runtime. The error is thrown by the CF Workers runtime:

Error: Unexpected loadManifest(/.next/server/subresource-integrity-manifest.json) call!
Error: Unexpected loadManifest(/.next/server/app/api/[route]/react-loadable-manifest.json) call!

These manifest files were introduced in Next.js 16.2.0-canary and are not yet handled by @opennextjs/cloudflare, causing
the worker to crash on any request that triggers loadManifests().

Environment

  • @opennextjs/cloudflare: 1.16.5
  • next: 16.2.0-canary.53
  • wrangler: 4.67.0

Steps to reproduce

  1. Create a Next.js app router project:
    pnpm create next-app my-app --app
    cd my-app
  2. Add @opennextjs/cloudflare and upgrade Next.js to canary:
    pnpm add @opennextjs/cloudflare
    pnpm add next@canary
  3. Create an open-next.config.ts and wrangler.jsonc as per the OpenNext Cloudflare docs.
  4. Build and preview:
    pnpm opennextjs-cloudflare build
    pnpm opennextjs-cloudflare preview
  5. Navigate to any dynamic/SSR route — you'll receive a 500 with the following in wrangler logs:
    ✘ [ERROR] ⨯ Error: Unexpected loadManifest(/.next/server/subresource-integrity-manifest.json) call!

Expected behavior

Dynamic routes should render successfully. The new manifest files introduced in the canary
(subresource-integrity-manifest.json, per-route react-loadable-manifest.json) should either be bundled into the worker or
gracefully handled when not present.

@opennextjs/cloudflare version

1.16.5

Wrangler version

4.67.0

next info output

Operating System:
  Platform: darwin
  Arch: arm64
  Version: Darwin Kernel Version 24.5.0: Tue Apr 22 19:54:49 PDT 2025; root:xnu-11417.121.6~2/RELEASE_ARM64_T6000
  Available memory (MB): 32768
  Available CPU cores: 10
Binaries:
  Node: 20.19.2
  npm: 10.8.2
  Yarn: 1.22.22
  pnpm: 9.15.9
Relevant Packages:
  next: 16.2.0-canary.58 // Latest available version is detected (16.2.0-canary.58).
  eslint-config-next: N/A
  react: 19.1.0
  react-dom: 19.1.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