Title: withSentryConfig breaks auto-reload for next.js dev · Issue #9067 · getsentry/sentry-javascript · GitHub
Open Graph Title: withSentryConfig breaks auto-reload for next.js dev · Issue #9067 · getsentry/sentry-javascript
X Title: withSentryConfig breaks auto-reload for next.js dev · Issue #9067 · getsentry/sentry-javascript
Description: Is there an existing issue for this? I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues I have reviewed the documentation https://docs.sentry.io/ I am using the latest SDK release https://github.com/...
Open Graph Description: Is there an existing issue for this? I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues I have reviewed the documentation https://docs.sentry.io/ I am using th...
X Description: Is there an existing issue for this? I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues I have reviewed the documentation https://docs.sentry.io/ I am using th...
Opengraph URL: https://github.com/getsentry/sentry-javascript/issues/9067
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"withSentryConfig breaks auto-reload for next.js dev","articleBody":"### Is there an existing issue for this?\n\n- [X] I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues\n- [X] I have reviewed the documentation https://docs.sentry.io/\n- [X] I am using the latest SDK release https://github.com/getsentry/sentry-javascript/releases\n\n### How do you use Sentry?\n\nSentry Saas (sentry.io)\n\n### Which SDK are you using?\n\n@sentry/nextjs\n\n### SDK Version\n\n7.69.0\n\n### Framework Version\n\nReact 18.2.0, Next 13.4.20-canary.30\n\n### Link to Sentry event\n\n_No response_\n\n### SDK Setup\n\n_No response_\n\n### Steps to Reproduce\n\nAfter running sentry nextjs wizard I got this next config:\r\n```\r\n/** @type {import('next').NextConfig} */\r\nconst nextConfig = {\r\n experimental: {\r\n serverActions: true,\r\n },\r\n};\r\n\r\nmodule.exports = nextConfig;\r\n\r\n// Injected content via Sentry wizard below\r\n\r\nconst { withSentryConfig } = require(\"@sentry/nextjs\");\r\n\r\nmodule.exports = withSentryConfig(\r\n module.exports,\r\n {\r\n // For all available options, see:\r\n // https://github.com/getsentry/sentry-webpack-plugin#options\r\n\r\n // Suppresses source map uploading logs during build\r\n silent: true,\r\n org: \"travel-times\",\r\n project: \"javascript-nextjs\",\r\n },\r\n {\r\n // For all available options, see:\r\n // https://docs.sentry.io/platforms/javascript/guides/nextjs/manual-setup/\r\n\r\n // Upload a larger set of source maps for prettier stack traces (increases build time)\r\n widenClientFileUpload: true,\r\n\r\n // Transpiles SDK to be compatible with IE11 (increases bundle size)\r\n transpileClientSDK: true,\r\n\r\n // Routes browser requests to Sentry through a Next.js rewrite to circumvent ad-blockers (increases server load)\r\n tunnelRoute: \"/monitoring\",\r\n\r\n // Hides source maps from generated client bundles\r\n hideSourceMaps: true,\r\n\r\n // Automatically tree-shake Sentry logger statements to reduce bundle size\r\n disableLogger: true,\r\n }\r\n);\r\n```\r\n\r\nWhen I'm running `next dev` - I don't get live reload anymore.\n\n### Expected Result\n\nLive reload works\n\n### Actual Result\n\nLive reload doesn't work. What's interesting is that it will show compile errors on the page, and then when I fix them they go away, however the contents of the page aren't being reloaded.","author":{"url":"https://github.com/Maxim-Mazurok","@type":"Person","name":"Maxim-Mazurok"},"datePublished":"2023-09-20T09:48:34Z","url":"https://github.com/getsentry/sentry-javascript/issues/9067"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:80e558c2-723b-59dc-2a0b-ba62aca278a9 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 93C0:64377:55ADA9:723110:6B04C259 |
| html-safe-nonce | dd39cee64bb7e31d8109f470f2236c1fe064caed2d315f888e3a0a20cfad0498 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5M0MwOjY0Mzc3OjU1QURBOTo3MjMxMTA6NkIwNEMyNTkiLCJ2aXNpdG9yX2lkIjoiMzU2ODc5MzM5NTgyNjgzNjA1NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 2cbbdaa6b38adb90a5cfa0ee617e46f42985029f0965a7e0bf4057add1613a59 |
| hovercard-subject-tag | issue:1904615458 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/getsentry/sentry-javascript/9067/issue_layout |
| twitter:image | https://opengraph.githubassets.com/3be4e67fa8d04f94ea2afe8c8508b24aa0d9f6ea4da618d95845fb396091e951/getsentry/sentry-javascript/issues/9067 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/3be4e67fa8d04f94ea2afe8c8508b24aa0d9f6ea4da618d95845fb396091e951/getsentry/sentry-javascript/issues/9067 |
| og:image:alt | Is there an existing issue for this? I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues I have reviewed the documentation https://docs.sentry.io/ I am using th... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Maxim-Mazurok |
| hostname | github.com |
| expected-hostname | github.com |
| None | 85dd75377eb77313206b8fc108bcee6a3a029286d94bf32bf9b4426e4d92e0c4 |
| turbo-cache-control | no-preview |
| go-import | github.com/getsentry/sentry-javascript git https://github.com/getsentry/sentry-javascript.git |
| octolytics-dimension-user_id | 1396951 |
| octolytics-dimension-user_login | getsentry |
| octolytics-dimension-repository_id | 3328572 |
| octolytics-dimension-repository_nwo | getsentry/sentry-javascript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 3328572 |
| octolytics-dimension-repository_network_root_nwo | getsentry/sentry-javascript |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 0d64fa748a2bab9a5b587a967ac4da1cfa8da6dd |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width