-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
NextJS Build hungs.. with sourcemap enabled #16259
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
Hi @softmarshmallow, thanks for writing in. Could you run |
Hi. Updated in original post |
Thanks! Hm, I'm not really spotting anything unusual from this. Could you please try to provide a reproduction repo? |
Hi 👋 I thought the root cause was that there are some large files in the server bundle files that the Sentry SDK cannot handle. https://www.zhyd1997.dev/blog/cal-dot-com-sentry-vercel-oom ![]() |
Thanks for helping out @zhyd1997, that's great writeup. This could very well be related to running out of memory, it's a known issue. Here are some remedies that you could try before going the route of completely removing |
Hi @andreiborza Yes, I have tried them all when resolving the issue for Cal.com.
The Vercel container only has 8 GB RAM, I added
The Cal team needs the sourcemap to debug errors. BTW, it works without sourcemaps.
Yes, I see, it will change the webpack config in |
Is there an existing issue for this?
How do you use Sentry?
Sentry Saas (sentry.io)
Which SDK are you using?
@sentry/nextjs
SDK Version
"@sentry/nextjs": "^9.17.0",
Framework Version
"next": "15.3.2", "react": "19.1.0",
Link to Sentry event
No response
Reproduction Example/SDK Setup
I recently added sentry to my nextjs app.
The build speed is almost unusable, I think it's a bug.
As you can see,
I've turned off the
widenClientFileUpload
for faster build, which does not resolve the issue.Before sentry, it was about 5min for build on vercel,
After sentry
The build logs says,.
But after the "[@sentry/nextjs - Node.js] Info: Successfully uploaded source maps to Sentry"
no logs will appear, and hungs for the next 30mins, build fails.
what is happening?
Steps to Reproduce
repo: https://github.com/gridaco/grida (/editor)
pnpm why @sentry/webpack-plugin
The text was updated successfully, but these errors were encountered: