Title: Module '"@sentry/nextjs"' has no exported member 'BrowserTracing'. · Issue #4569 · getsentry/sentry-javascript · GitHub
Open Graph Title: Module '"@sentry/nextjs"' has no exported member 'BrowserTracing'. · Issue #4569 · getsentry/sentry-javascript
X Title: Module '"@sentry/nextjs"' has no exported member 'BrowserTracing'. · Issue #4569 · getsentry/sentry-javascript
Description: Hello 👋 I just updated to Sentry 6.17.7 and saw that BrowserTracing has since been directly exported through @sentry/nextjs so I went to update my sentry.client.config.ts file: -import { Integrations } from '@sentry/tracing'; +import { B...
Open Graph Description: Hello 👋 I just updated to Sentry 6.17.7 and saw that BrowserTracing has since been directly exported through @sentry/nextjs so I went to update my sentry.client.config.ts file: -import { Integratio...
X Description: Hello 👋 I just updated to Sentry 6.17.7 and saw that BrowserTracing has since been directly exported through @sentry/nextjs so I went to update my sentry.client.config.ts file: -import { Integratio...
Opengraph URL: https://github.com/getsentry/sentry-javascript/issues/4569
X: @github
Domain: github.com
IPv4 address: 140.82.112.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Module '\"@sentry/nextjs\"' has no exported member 'BrowserTracing'.","articleBody":"Hello 👋 \r\nI just updated to Sentry 6.17.7 and saw that [`BrowserTracing` has since been directly exported through `@sentry/nextjs`](https://github.com/getsentry/sentry-javascript/pull/4480) so I went to update my `sentry.client.config.ts` file:\r\n\r\n```diff\r\n-import { Integrations } from '@sentry/tracing';\r\n+import { BrowserTracing } from '@sentry/nextjs';\r\n```\r\n\r\n```diff\r\n-integrations: [new Integrations.BrowserTracing(), new OfflineIntegration()],\r\n+integrations: [new BrowserTracing(), new OfflineIntegration()],\r\n```\r\nBut TypeScript is complaining about the `import`, saying \r\n> Module '\"@sentry/nextjs\"' has no exported member 'BrowserTracing'. ts(2305)\r\n\r\nIt seems TypeScript is looking in the server index file, rather than the client. I'm not sure there's a good way around this at the moment, aside from ignoring this error or also exporting `BrowserTracing` from the server file. I did come across https://github.com/Microsoft/TypeScript/issues/29128 which seems like what we'd need here.","author":{"url":"https://github.com/seanparmelee","@type":"Person","name":"seanparmelee"},"datePublished":"2022-02-14T18:33:25Z","url":"https://github.com/getsentry/sentry-javascript/issues/4569"}
| 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:13ad64f8-3697-edc9-e77c-159edd07fe32 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D134:18CB59:1ACB02:24AA99:6B04B49C |
| html-safe-nonce | 8934cb78abbb43b5e3d10950ecba3955103b01acb997981e0cf97a7669a1b44c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMTM0OjE4Q0I1OToxQUNCMDI6MjRBQTk5OjZCMDRCNDlDIiwidmlzaXRvcl9pZCI6IjY0Njc4MDM5NTczNTUxMzIwNjEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | a78053585f554246db4acdf09ea2d1f96faea6f58c2e06ec6ae40a848e4755df |
| hovercard-subject-tag | issue:1137688366 |
| 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/4569/issue_layout |
| twitter:image | https://opengraph.githubassets.com/a75330051f2237399dcdd668b7d0836d7b08d6dc974e3105e503c815132d143f/getsentry/sentry-javascript/issues/4569 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/a75330051f2237399dcdd668b7d0836d7b08d6dc974e3105e503c815132d143f/getsentry/sentry-javascript/issues/4569 |
| og:image:alt | Hello 👋 I just updated to Sentry 6.17.7 and saw that BrowserTracing has since been directly exported through @sentry/nextjs so I went to update my sentry.client.config.ts file: -import { Integratio... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | seanparmelee |
| hostname | github.com |
| expected-hostname | github.com |
| None | 378bd702ac792b3550e484ad39d9a898fcd25bb52ba6962b0c9cc457c1ea71c7 |
| 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 | b032e77f1ea437ede6c115446a0a467709b468e7 |
| 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