Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wesbos opened this issue Feb 12, 2025 · 1 comment
Open
Labels
bug Something isn't working

Comments

@wesbos
Copy link
Contributor

wesbos commented Feb 12, 2025

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

@vicb
Copy link
Contributor

vicb commented Feb 13, 2025

Thanks for your report @wesbos - we'll look at that shortly

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.

No problem, your feedback has been super valuable, keep it coming.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Development

No branches or pull requests

2 participants