Skip to content

React Native Web - sentry/browser - sourcemap not working #4422

@nada-zheng

Description

@nada-zheng

What React Native libraries do you use?

React Native Web

Are you using sentry.io or on-premise?

sentry.io (SaS)

@sentry/react-native SDK Version

"@sentry/browser": "7.109.0"

How does your development environment look like?

Node: v20.9
os: macOS
yarn: 1.22

Sentry.init()

 Sentry.init({
            dsn,
            release: `${platform}-v${version}`,
            environment,
            tracesSampleRate,
            integrations: [
                Sentry.browserTracingIntegration(),
                httpClientIntegration({
                    failedRequestStatusCodes: [
                        [400, 499],
                        [500, 599],
                    ],
                }),
                new ApiRateLimitIntegration(),
            ],

Steps to Reproduce

I upload the sourcemap by this command
const createRelease = sentry-cli releases new ${releaseVersion} --org ${sentryEnv.defaults.org} --project ${sentryEnv.defaults.project};
const command = sentry-cli releases files ${releaseVersion} upload-sourcemaps ${distPath} --rewrite --url-prefix '~/${prefix}' --org ${sentryEnv.defaults.org} --project ${sentryEnv.defaults.project};

the source map uploaded success, but it doesn't work

Image Image

Expected Result

The sourcemap works correctly

Actual Result

The sourcemap doesn't work

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions