Skip to content

Uncaught TypeError: t.spanContext is not a function in CDN import #14009

@rodolfoBee

Description

@rodolfoBee

Is there an existing issue for this?

How do you use Sentry?

Sentry Saas (sentry.io)

Which SDK are you using?

@sentry/browser

SDK Version

8.34.0

Framework Version

No response

Link to Sentry event

No response

Reproduction Example/SDK Setup

No response

Steps to Reproduce

User provided code example but i was unable to reproduce with it on my own setup. There is a public server and the steps to reproduce are available on this internal ticket (contains a login and cant be shared publicly)

Expected Result

No errors from the SDK.

Actual Result

Uncaught TypeError: t.spanContext is not a function in the console. By inspecting the code, it is coming from this line: https://github.com/getsentry/sentry-javascript/blob/develop/packages/core/src/utils/spanUtils.ts#L175

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugPackage: browserIssues related to the Sentry Browser SDK

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions