-
Notifications
You must be signed in to change notification settings - Fork 27.4k
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
[[email protected] + [email protected]] The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering #35564
Comments
This is because of Atm you could add |
@huozhi When I use
|
@phuwin95 Can you try the canary version? |
It works now! Thank you. I'm checking this on the doc and it doesn't mention the canary version of next at all. |
There're few pending changes that about to release soon, might have some mismatch between the online docs with changes. Community folks has filed PR to change that part to |
Hey, |
@nghiepit you should be able to achieve it with |
Can confirm that this is still an issue on next 12.1.4. In my case I can't load Canvas from react-three-fiber (which is a big component) using next/dynamic with |
@harisraharjo can you provide a minimal reproduction for this? If you specify |
I'm currently experiencing the same issue when trying to put a I'm not sure if this issue belongs here or in the repository for react-plotly, though. EDIT: I also made a branch where I have |
Since React.lazy is working with latest React and next@canary, I've opened a new issue for #36636 |
Oddly I'm seeing this bug pop up when I upgrade from 13.0.0 to 13.0.1. I'd love to help out with a better error stacktrace, but it's basically the same as the OP - no real sign of what component or part of the codebase in general is causing this error. |
@tmcw can you confirm that if you're seeing it in |
Yes, in an |
Not sure if the intent was to fix this in 13.0.2, but just tested in 13.0.2 and I can confirm that the issue persists, seeing the same bug. |
@tmcw can you provide a reproduction for us to investigate? that would be super helpful 🙏 The comments in this issue are crowded with few different issues, previously I thought your case is breaking with |
Sure, I'll give it a shot. This bug is unfortunately really hard to narrow down because the error message has no information, function names, line numbers, etc., so it's pretty much shooting in the dark. I'll try just deleting code until it stops crashing 🤣 Okay, according to the folks working on Blitz, this is a known issue for them that there are incompatibilities with Next 13. Anyway, here's a repro repo, this bug manifests if you just create a new Blitz project and update Next to 13.x. https://github.com/tmcw/next-13-test-result |
Gotcha so it's an issue on blitz. I'll close this issue for now since I cannot repro with nextjs as the issue is resolved. |
to be clear, this is still an issue with nextjs because nextjs has no way to render a suspense fallback on the server without an error message showing. Functionally everything works expect for this incorrect error. In blitz we patch the nextjs reactdom error function to hide this error. We'll update that for nextjs this week, but functionality still works correctly. |
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)
next dev
Describe the Bug
The
[email protected]
and[email protected]
does not work with Suspense mode.Expected Behavior
Just works
To Reproduce
0/ Clone https://github.com/nghiepit/next-12-react-18-rc
1/
yarn install
2/
yarn dev
3/ See error...
Note: The error appears only once, to show the error again we need to restart the server with
yarn dev
The text was updated successfully, but these errors were encountered: