Skip to content

Conversation

@lobsterkatie
Copy link
Member

@lobsterkatie lobsterkatie commented Nov 5, 2021

#4017 introduced a bug wherein running the dev server would lead to an infinite recompilation loop. (Something about the implementation tricks the file watcher into thinking there's been a change when there hasn't.) Fortunately, since we don't upload sourcemaps in dev, the change made by that PR (accounting for the nextjs distDir option in our server-side RewriteFrames integration, which in turn enables sourcemaps to work) is actually a moot point there. This PR solves the issue by simply not applying that change to the dev server.

Fixes #4115

@github-actions
Copy link
Contributor

github-actions bot commented Nov 5, 2021

size-limit report

Path Size
@sentry/browser - CDN Bundle (gzipped) 22.47 KB (-0.01% 🔽)
@sentry/browser - Webpack 23.35 KB (0%)
@sentry/react - Webpack 23.39 KB (0%)
@sentry/browser + @sentry/tracing - CDN Bundle (gzipped) 29.92 KB (-0.01% 🔽)

@ZhelinCheng
Copy link

wait...

@AbhiPrasad AbhiPrasad enabled auto-merge (squash) November 5, 2021 12:09
@AbhiPrasad AbhiPrasad merged commit 9b0700f into master Nov 5, 2021
@AbhiPrasad AbhiPrasad deleted the kmclb-nextjs-stop-infinite-compilation-in-dev branch November 5, 2021 12:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Sentry Nextjs causes dev server to recompile forever

6 participants