Title: Sentry doing nothing on a NextJS application run within NX · Issue #6314 · getsentry/sentry-javascript · GitHub
Open Graph Title: Sentry doing nothing on a NextJS application run within NX · Issue #6314 · getsentry/sentry-javascript
X Title: Sentry doing nothing on a NextJS application run within NX · Issue #6314 · 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/6314
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Sentry doing nothing on a NextJS application run within NX","articleBody":"### Is there an existing issue for this?\r\n\r\n- [X] I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues\r\n- [X] I have reviewed the documentation https://docs.sentry.io/\r\n- [X] I am using the latest SDK release https://github.com/getsentry/sentry-javascript/releases\r\n\r\n### How do you use Sentry?\r\n\r\nSentry Saas (sentry.io)\r\n\r\n### Which package are you using?\r\n\r\n@sentry/nextjs\r\n\r\n### SDK Version\r\n\r\n7.21.1\r\n\r\n### Framework Version\r\n\r\n_No response_\r\n\r\n### Link to Sentry event\r\n\r\n_No response_\r\n\r\n### Steps to Reproduce\r\n\r\nGiven that we're using [NX](https://nx.dev/) for our service, we cannot use [the wizard](https://docs.sentry.io/platforms/javascript/guides/nextjs/#configure) to automatically configure our application, so we followed the [manual steps](https://docs.sentry.io/platforms/javascript/guides/nextjs/manual-setup/) and created all of the files within our application folder, `apps/app` (not the root of the repository).\r\n\r\nWhich means that is `/` is the root of the repository, we now have the following files in the following paths:\r\n\r\n* `apps/app/sentry.client.config.js`\r\n* `apps/app/sentry.server.config.js`\r\n* `apps/app/.sentryclirc`\r\n* `apps/app/sentry.properties`\r\n\r\nWe also:\r\n* Modified the `next.config.js` to add the `withSentryConfig` with extra values for Sentry (or the webpack plugin).\r\n* Added the custom _error page.\r\n\r\nWe've added a `console.log` to both `sentry.client.config.js` and `sentry.server.config.js` to see if they're being called (trying to diagnose the symptom).\r\n\r\nWe've executed `nx serve app` from the root of the project.\r\n\r\n### Expected Result\r\n\r\n* We can see the `console.log` appear in the console of the client/server (confirming that `Sentry.init` has been executed).\r\n* When performing an action that throws an error we expect it to see it reported in Sentry.\r\n\r\n### Actual Result\r\n\r\n* No log appears\r\n* No message from Sentry appears\r\n* No error is reported","author":{"url":"https://github.com/jporsay","@type":"Person","name":"jporsay"},"datePublished":"2022-11-28T13:26:51Z","url":"https://github.com/getsentry/sentry-javascript/issues/6314"}
| 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:adfa35af-bc6f-9f3c-495b-a32d4c10a242 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9B12:2EB852:14FCF5:1C0B75:6B0480F2 |
| html-safe-nonce | 53b9eda78e7516f5a7df75fcf4c8f7342b00ee48fa3d7fe5477988f17ba66dae |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5QjEyOjJFQjg1MjoxNEZDRjU6MUMwQjc1OjZCMDQ4MEYyIiwidmlzaXRvcl9pZCI6IjExODc0NzA5NjYzNjA2NzA0NTEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | ec9e6867327332ab47533bccb94b37b09fed7caf0c08f875b33d7a68d36d96ac |
| hovercard-subject-tag | issue:1466428747 |
| 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/6314/issue_layout |
| twitter:image | https://opengraph.githubassets.com/d2702b81867793c9beea2f3f54d56817d0fcda5dc249bb0c1281ce0ef140d5e5/getsentry/sentry-javascript/issues/6314 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/d2702b81867793c9beea2f3f54d56817d0fcda5dc249bb0c1281ce0ef140d5e5/getsentry/sentry-javascript/issues/6314 |
| 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 | jporsay |
| hostname | github.com |
| expected-hostname | github.com |
| None | 0366ddfb372682a32e92a5d86155cb08fa83e5bbe79953a968789f2f7e24c511 |
| 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 | ed3f2e01f6b7672780c586c8af0e72726374d7b6 |
| 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