-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Crash on server side running on Vercel after upgrading to Next.js 12 #4103
Comments
Also happening to me [GET] /_next/data/NfIMoVz8P-4n3aklepICZ/es/products/fresa-vendor-madrid.json
|
Current workaround is to add that will probably lead to larger artifact, but solves the issue. |
Same issue here, Sentry breaks functionality of Vercel serverless functions, but they do run locally Workarround worked: |
getting this too. will this issue track a proper fix? |
Edit: These are related to Sentry and Next.js but not to the issue discussed here. Sorry, I got that mixed up.
|
@davguij #4027 got merged yesterday, can you verify if the issue still exists with Sentry 6.5.0? (cc. @cezarneaga, @sanderkooger) |
works for me. thanks a bunch! |
I just upgraded to
I believe #4027 is a separate issue to this. A comment from the Next.js maintainer seems to indicate that this issue is caused by Sentry importing a reference to The workaround of |
@DavidChouinard I tried upgrading to Then I tried upgrading Next to |
Still have the error with 6.15.0 :/ |
+1 |
Upgrading to 6.5.0 and setting |
Sure looks like it. We are starting to think to step off of sentry for a moment, until things are a bit more stable. Disabling outputFileTracing does work. But we were looking through the history here and sentry seems to break prod quite often? |
const { withSentryConfig } = require('@sentry/nextjs')
const moduleExports = {
outputFileTracing: false
}
const sentryWebpackPluginOptions = {
silent: true,
}
module.exports = withSentryConfig(moduleExports, sentryWebpackPluginOptions) Excuse me, could you please help me by indicating if this is the correct way? |
@IGUNUBLUE Yep, at least that is my current workaround. |
What's odd to me is Would love to have |
Just adding a quick message as I stumbled on this error with using nx, sentry and next. I read too quickly the documentation and missed this part :
If module.exports = withSentryConfig(withNx(baseOptions), {
silent: true,
}); |
Upgrading to |
Package + Version
@sentry/browser
@sentry/node
raven-js
raven-node
(raven for node)@sentry/nextjs
Version:
Description
After upgrading a project from Next 11.1.2 to 12.0.1, the Next.js-powered API endpoints start to crash, as in https://drafted-webapp-hmopbeh9f-davidguijarro.vercel.app/api/status.
Here's a sample log of the error:
Weird enough, this only happens when deployed to Vercel, not when running on local.
I also confirmed that completely removing Sentry from the project solves the issue.
The text was updated successfully, but these errors were encountered: