-
Notifications
You must be signed in to change notification settings - Fork 46.7k
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: Suspense Exception in react-server-dom-webpack #27896
Comments
This is probably happening because the you have If that's not the case, please share a codesandbox to show how it's happening and I can re-open and take a look. |
I wonder if you have some advice on figuring out what causes it? Judging by the comment on #25543 and also my personal experience, if this error happens in a vendor module, it won't be visible in dev, only if it happens in user space. This, for example, means that I end up having this error in production and preview Sentry, but can never replicate it locally. |
I'm also encountering this issue. |
I just began using Sentry in the Next project I'm currently working on and found relatively quickly that a very weird error is being thrown in production at: (react-server)/./dist/compiled/react-server-dom-webpack/cjs/react-server-dom-webpack-server.edge.production.min.js at line 12:123419
The error in Sentry states the following:
Suspense Exception: This is not a real error! It's an implementation detail of
use
to interrupt the current render. You must either rethrow it immediately, or move theuse
call outside of thetry/catch
block. Capturing without rethrowing will l...Hosting this project on Vercel.
React version: 18.2.0
Node version: 20.9.0
The current behavior
An error is being thrown even though it states it is not a real error.
The expected behavior
The error should not be thrown if it is not a real error.
The text was updated successfully, but these errors were encountered: