Open alvarlagerlof opened 3 months ago
Some more context:
Since https://github.com/vercel/next.js/pull/64751/files, the react-server
condition is applied to route handlers (wasn't before). The canaries after this change work fine until https://github.com/vercel/next.js/pull/65058/files, where it stops working.
This example on Resend.com is built on being able to run renderToRedableStream
/ renderToPipeableStream
in a route handler, and it will break as well.
Seems a lot like this issue is going to be resolved by https://github.com/facebook/react/pull/30105, but will keep this open until I've been able to confirm that it works.
Link to the code that reproduces this issue
https://github.com/alvarlagerlof/next-repro-render-to-readable-stream
To Reproduce
Current vs. Expected behavior
Error [TypeError]: Cannot read properties of undefined (reading 'H')
logged instead of returninghello world
. I would expect this import to work given that this is a route handler and not a sever component.Provide environment information
Which area(s) are affected? (Select all that apply)
Module Resolution, Runtime
Which stage(s) are affected? (Select all that apply)
next dev (local), next build (local), next start (local)
Additional context
No response