Skip to content

[BUG] Dynamic Pages and PPR broken on Next.js Canary Above 15.1.1-canary.6Β #373

@wesbos

Description

@wesbos

Describe the bug

Been using Next.js Canary so I can get PPR support, but any page or component that uses dynamic components will cause the site to crash.

The error is the usual [cause]: Error: Invariant: renderHTML should not be called in minimal mode at Object.renderHTMLImpl but I did see some errors around pipe and stream in my cloudflare dashboard.

I've narrowed it down to working last in [email protected], so something in 15.1.1-canary.7 broke. I confirmed with the latest 15.2.0-canary.55 as well.

Normally I wouldn't complain about canary support, but PPR is only available in canary at the moment, and the opennextjs docs say PPR is supported.

This seems to be an issue bigger that PPR, and any dynamic content is causing it to throw an error - so likely shoudl be fixed for when Next.js 15.2.0 is released

Steps to reproduce

  1. Go to https://github.com/wesbos/opennextjs-error-replication
  2. pnpm install
  3. pnpm run preview

Expected behavior

it works

@opennextjs/cloudflare version

0.5.0

Wrangler version

3.108.1

next info output

x

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions