Repository navigation
fix(cli): Give Next.js advice when no sourcemaps are found - #1937
Merged
Merged
Conversation
Nearly all zero-pairs sourcemap upload errors (CLI-1FN) come from @sentry/nextjs uploading .next/static and .next/server, but the hint only named Vite and webpack settings. Point Next.js output at the next.config settings that control its sourcemaps. The JS-and-maps-but-no-pairs message said pairs need matching basenames, but sourceMappingURL comments pair files too. Say what actually failed, and add the same bundler hint. Co-Authored-By: Miguel Betegon <miguel.betegon@sentry.io>
|
The latest updates on your projects. Learn more about Vercel for GitHub. 1 Skipped Deployment
|
BYK
approved these changes
Nov 4, 2026
BYK
left a comment
Member
There was a problem hiding this comment.
I mean at this point why not also offer to fix this for them?
7 tasks done
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of CLI-1FN. About 88% of sampled events are the zero-pairs error, and nearly all of them are
@sentry/nextjsuploading.next/static/chunks,.next/static/immutable/chunks, or.next/server. The hint only named Vite and webpack settings, and neither applies to Next.js. This PR makes the hint match the build output. The error still fires as before.The "JS and maps, but no pairs" message also blamed basenames. Pairing also follows
sourceMappingURLcomments, so it now says what actually failed.Before
After
The first case comes from a real Next.js 16 Turbopack build with
productionBrowserSourceMaps: false. That is the only setup I could reproduce that leaves.next/staticwith zero maps underwithSentryConfig. Rebuilds into an existing.next, or with only.next/cacherestored, re-emit the maps. Non-Next paths keep the Vite and webpack hint.via bete.
--
View Session [Sentry]