-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
@sentry/next.js and @sentry/cli failing after Next.js 12.2.0 upgrade #5366
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
Comments
Hey thanks for writing in, we are taking a look! In the mean time, to help us debug, could you provide your webpack version and your I have a quick theory that https://nextjs.org/docs/api-reference/edge-runtime is causing issues here. As per their section on unsupported APIs:
Not sure why they would be running at build time though, so maybe I'm wrong 🤔. |
@AbhiPrasad you are actually right! I just setup one codesandbox example where commenting the following edge api runtime avoids the issue. export const config = {
runtime: 'experimental-edge'
}; I'm going to ignore those edge functions on Sentry config on meantime. how to debug sandboxEdge api function example. please set the following env var secrets:
then open a new terminal and run yarn build |
See vercel/next.js#36776 for more details. Yeah we don't support middleware at the moment, this is being tracked here: #4206 |
Apparently adding edge route api to |
Bug reported was fixed on Next.js 12.2.1 by this changed vercel/next.js#38234 |
Uh oh!
There was an error while loading. Please reload this page.
Is there an existing issue for this?
How do you use Sentry?
Sentry Saas (sentry.io)
Which package are you using?
@sentry/nextjs
SDK Version
7.5.0
Framework Version
7.5.0
Link to Sentry event
No response
Steps to Reproduce
After upgrading to Next.js 12.2.0, webpack plugin
withSentryConfig
seems to fail when CLI tries to update and upload source maps.Expected Result
CLI is expected to recognize Node.js modules.
Actual Result
Getting this error

even if all those modules are already skipped on non-server builds.

The text was updated successfully, but these errors were encountered: