Skip to content

@sentry/gatsby: TypeError: Cannot read properties of undefined (reading 'href') after upgrading to latest version #10578

@elanderos318

Description

@elanderos318

Is there an existing issue for this?

How do you use Sentry?

Sentry Saas (sentry.io)

Which SDK are you using?

@sentry/gatsby

SDK Version

7.100.1

Framework Version

5.12.11

Link to Sentry event

No response

SDK Setup

Sentry.init({
  dsn: {my_dsn},
  enabled: process.env.NODE_ENV === 'development',
  environment: process.env.NODE_ENV,
  tracesSampleRate: 1.0
})

Steps to Reproduce

  1. upgrade to latest @sentry/gatsby version to reduce bundle size
  2. start a staging build in gatsby cloud
  3. error logged

Expected Result

works as it did in 7.42.0

Actual Result

TypeError: Cannot read properties of undefined (reading 'href')
- browserTracingIntegration.js:185 Object.afterAllSetup
    [...]/[@sentry-internal]/tracing/esm/browser/browserTracingInte    gration.js:185:31
- integration.js:98 afterSetupIntegrations
    [...]/[@sentry]/core/esm/integration.js:98:1
- baseclient.js:423 BrowserClient._setupIntegrations
    [...]/[@sentry]/core/esm/baseclient.js:423:5
 - baseclient.js:270 BrowserClient.init
    [...]/[@sentry]/core/esm/baseclient.js:270:1
- sdk.js:56 initializeClient
    [...]/[@sentry]/core/esm/sdk.js:56:1

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions