-
-
Notifications
You must be signed in to change notification settings - Fork 10.5k
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
Pre-rendering hangs the build process #13053
Comments
This doesn't hang for me but fails due to too many open files when trying to load your server build. I added a debug log right before that to confirm that's what it fails on. You could try using
|
I changed my session ulimit and had no luck, haven't tried changing it system-wide. Additionally, this doesn't fail just for me; it also fails in CI when Cloudflare tries to build the project with: "Failed: build exceeded the time limit and was terminated.". |
I'm using React Router as a...
framework
Reproduction
I've had a project that started with remix, which I recently migrated to react-router. Pre-rendering has been broken for me since I tried it when I moved to 7.1, and I tried it again after 7.2, and it's still broken: mnara-solutions/utiliti.dev#64
Unfortunately, the build process just hangs without any more info. I have tried providing only a single route to ensure it's not in my pre-render logic but that didn't help either.
Additionally, I had to adjust my import of
renderToReadableStream
fromreact-dom/server
toreact-dom/server.browser
, which I don't see documented anywhere.System Info
Used Package Manager
npm
Expected Behavior
I expect the build command to be executed successfully.
Actual Behavior
The process hangs at the end of the build process:
The text was updated successfully, but these errors were encountered: