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
Attempting to use Streaming SSR (Alpha) produces TypeError: readable.getReader is not a function #35050
Comments
It's using react rc1 in the codesandbox, you can switch back to rc0 at the moment as workaround to play with streaming features. react 18 rc1 support is landed in #34972 |
@huozhi thanks for the response! I updated the sandbox to use the current rc0 ( |
Can confirm that downgrade to: pnpm add react@18.0.0-rc.0 react-dom@18.0.0-rc.0 works. |
ah okay, thank you! the problem was that the |
This closed issue has been automatically locked because it had no new activity for a month. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you. |
Verify canary release
Provide environment information
What browser are you using? (if relevant)
Chrome
How are you deploying your application? (if relevant)
No response
Describe the Bug
I updated to
next@latest
andreact@next
and attempted to enable Streaming SSR as per the instructions here.I tried using both
nodejs
andedge
for the runtime option innext.config.js
, but in both cases when attempting to run the app in development mode and load the page, I get the following error in the console, and the page fails to load:Looks like the error is happening here: https://github.com/vercel/next.js/blob/canary/packages/next/server/render.tsx#L1899
Additionally, when using
nodejs
I additionally see this warning:WARNING: Missing strong random number source
.Expected Behavior
Running the app in development mode with Streaming SSR enabled runs without errors and the page is able to load.
To Reproduce
yarn && yarn start
localhost:3000
The text was updated successfully, but these errors were encountered: