Title: @sentry/next.js v 7.23.1 stops sending events · Issue #6475 · getsentry/sentry-javascript · GitHub
Open Graph Title: @sentry/next.js v 7.23.1 stops sending events · Issue #6475 · getsentry/sentry-javascript
X Title: @sentry/next.js v 7.23.1 stops sending events · Issue #6475 · 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/6475
X: @github
Domain: github.com
IPv4 address: 140.82.113.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"@sentry/next.js v 7.23.1 stops sending events","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 package are you using?\n\n@sentry/nextjs\n\n### SDK Version\n\n7.23.0\n\n### Framework Version\n\n7.23.0\n\n### Link to Sentry event\n\n_No response_\n\n### Steps to Reproduce\n\nAfter upgrading sentry to @sentry/next js to `7.23.1` we no longer get events sent. \r\n\r\nthis PR i believe is the culprit https://github.com/getsentry/sentry-javascript/pull/6267 and looking at the code and the description that makes sense. \r\n\r\nOur configs are below, and im wndering if its something in the ts-node register that is causing next to exclude the `withSentryConfig` from the bundle. \r\n\r\nI also tried with just the sentry plugin and not using the `next-compose-plugins` and still was not able to send events\r\n\r\nnext.config.ts looks like the below\r\n\r\n```ts\r\nimport NextBundleAnalyzer from \"@next/bundle-analyzer\";\r\nimport { withSentryConfig } from \"@sentry/nextjs\";\r\nimport { NextConfig } from \"next\";\r\nimport withPlugins from \"next-compose-plugins\";\r\n\r\nimport envVariables from \"@brexhq/shared/utils/env/envVariables\";\r\nimport { isDev } from \"@brexhq/shared/utils/env/isDevEnv\";\r\n\r\nimport { ensureEnvVariable } from \"./src/utils/dataFetching/env\";\r\nimport { getSanityToken } from \"./src/utils/dataFetching/fetchFromSanity\";\r\n\r\n\r\n\r\n\r\n\r\n\r\nconst nextConfig: NextConfig = {\r\n reactStrictMode: true,\r\n experimental: {\r\n externalDir: true,\r\n },\r\n sentry: {\r\n hideSourceMaps: true,\r\n },\r\n env: {\r\n ...\r\n },\r\n async headers() {\r\n return [...],\r\n },\r\n ];\r\n },\r\n async rewrites() {\r\n return [...];\r\n },\r\n};\r\n\r\nconst sentryWebpackPluginOptions = {\r\n silent: true,\r\n};\r\n\r\nconst bundleAnalyzer = process.env.ANALYZE\r\n ? NextBundleAnalyzer({\r\n enabled: process.env.ANALYZE === \"true\",\r\n })\r\n : (config: any) => config;\r\n\r\nconst sentry = withSentryConfig(nextConfig as any, sentryWebpackPluginOptions);\r\n\r\nconst images = {\r\n images: {\r\n remotePatterns: [\r\n {\r\n protocol: \"https\",\r\n hostname: \"brand.brex.com\",\r\n pathname: \"/**\",\r\n port: \"\",\r\n },\r\n ],\r\n },\r\n};\r\n\r\nmodule.exports = withPlugins([sentry, bundleAnalyzer, images]);\r\n```\r\nnext.config.js is this which compiles the next.config.ts \r\n```js\r\nrequire(\"ts-node\").register({\r\n compilerOptions: {\r\n module: \"commonjs\",\r\n target: \"es2017\",\r\n },\r\n});\r\n\r\nrequire(\"tsconfig-paths/register\");\r\n\r\nmodule.exports = require(\"./next.config.ts\");\r\n\r\n```\r\n\r\n\r\n\n\n### Expected Result\n\nSentry sends events\n\n### Actual Result\n\nNo events are sent via sentry, and I observe no network calls being made. ","author":{"url":"https://github.com/isaac-martin","@type":"Person","name":"isaac-martin"},"datePublished":"2022-12-08T16:20:05Z","url":"https://github.com/getsentry/sentry-javascript/issues/6475"}
| 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:4fdccfad-e2b1-38c1-f476-0a8863b33792 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C206:321110:258D90:350D06:6B04694F |
| html-safe-nonce | 77fb30748e8eca1de417ff36e1bf1197eed02611efdcf2af8224f92c130f23ee |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMjA2OjMyMTExMDoyNThEOTA6MzUwRDA2OjZCMDQ2OTRGIiwidmlzaXRvcl9pZCI6IjU2MzUyMzg3ODA1NDcxMzE3MjciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 12e23b59281a29a155eba1b3c60ab1a060987e3d0c3c5038eb99f3ddec596a15 |
| hovercard-subject-tag | issue:1484972465 |
| 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/6475/issue_layout |
| twitter:image | https://opengraph.githubassets.com/bed50fe4b8c73fc50a0caf2a76204002a0a963d0b0b28c5cb7dbc462e46dac2e/getsentry/sentry-javascript/issues/6475 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/bed50fe4b8c73fc50a0caf2a76204002a0a963d0b0b28c5cb7dbc462e46dac2e/getsentry/sentry-javascript/issues/6475 |
| 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 | isaac-martin |
| hostname | github.com |
| expected-hostname | github.com |
| None | 83e4c0e58c5162177f3c161c5fbad38527ae04c11ac14980f9f9d85ae2027b1f |
| 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 | ca4d07a7cef4e4b75f821dc25e7300d80c1450a9 |
| 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