Closed
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/getsentry/sentry-javascript/releases
How do you use Sentry?
Sentry Saas (sentry.io)
Which package are you using?
@sentry/nextjs
SDK Version
7.12.0
Framework Version
"next": "12.2.5"
Link to Sentry event
No response
Steps to Reproduce
- Install Next.JS
- Use next js edge functions
- See sentry error on server
Expected Result
Zero errors
Actual Result
TypeError: Cannot read properties of undefined (reading 'getElementById')
at node_modules/@sentry/nextjs/esm/performance/client.js:22:26
at node_modules/@sentry/nextjs/esm/performance/client.js:94:54
at node_modules/@sentry/tracing/esm/browser/browsertracing.js:99:0
at node_modules/@sentry/core/esm/integration.js:64:0
at <anonymous>
at node_modules/@sentry/core/esm/integration.js:60:0
at node_modules/@sentry/core/esm/baseclient.js:217:27
at node_modules/@sentry/hub/esm/hub.js:65:0
at node_modules/@sentry/core/esm/sdk.js:32:0
at node_modules/@sentry/browser/esm/sdk.js:110:2
at node_modules/@sentry/react/esm/sdk.js:18:2
at node_modules/@sentry/nextjs/esm/index.client.js:31:2
at sentry.server.config.ts:8:0
at webpack/bootstrap:21:0
at node_modules/react/index.js:4:2
at node_modules/react/index.js:4:2
at webpack/runtime/jsonp chunk loading:34:0
at api/github:middleware.js:1:17
Link to CODE