Skip to content

Issue with SDK in Lightning Web Components - Salesforce #16315

Open
@pankajkabra

Description

@pankajkabra

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

9.15.0

Framework Version

No response

Link to Sentry event

No response

Reproduction Example/SDK Setup

https://codefile.io/f/84xs7nA3Np

Steps to Reproduce

I created this lightning web component https://codefile.io/f/84xs7nA3Np
Issue is.

  1. When i use https://js.sentry-cdn.com/xxxxx.min.js - sdk loads fine but captureException just doesn't work, i dont see any event captured on sentry dashboard.
  2. I tried using https://browser.sentry-cdn.com/7.60.1/bundle.tracing.replay.debug.min.js/projectid - but getting failure while loading sdk
  3. also tried using https://browser.sentry-cdn.com/9.15.0/bundle.replay.min.js and https://browser.sentry-cdn.com/9.15.0/bundle.min.js and sdk doesn't load.

LWC is a salesforce fronted so importing external libraries works differently https://developer.salesforce.com/docs/platform/lwc/guide/js-third-party-library.html.

Expected Result

Event should be captured on sentry.io

Actual Result

No event captured when using https://js.sentry-cdn.com/xxxxx.min.js and getting exception while loading sdk if using https://browser.sentry-cdn.com/9.15.0/bundle.replay.min.js and https://browser.sentry-cdn.com/9.15.0/bundle.min.js

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions