Skip to content

Source Map for ReactJS app not working as expected. #12161

@sarthakbaweja148

Description

@sarthakbaweja148

Environment

SaaS (https://sentry.io/)

What are you trying to accomplish?

We have been using sentry to track issues in our ReactJS for quite some time now, but recently in the last few months, sentry is not able to parse the source maps as expected due to which stack trace is not readable.

We have also verified that releases and source maps are being uploaded to sentry.

We are using sentry webpack plugin to upload the source-maps.

@sentry/react: 7.21.1
@sentry/tracing: 7.21.1
@sentry/webpack-plugin: 1.20.0

sentry webpack plugin
SentryWebpackPlugin({ authToken: vaultData?.secrets?.sentry?.sourceMapConfig.authToken, org: configKeys.sentry?.sourceMapConfig.org, project: configKeys.sentry?.sourceMapConfig.project, release: releaseVersionForSentry, include: "./dist", urlPrefix:~/splashliv-fe-assets/, ignore: ["node_modules", "webpack.config.js"], })

sentry init

Sentry.init({ enabled: configKeys.sentry.enabled, dsn: configKeys.sentry.dsn, environment: configKeys.sentry.env, integrations: [ new Sentry.BrowserTracing(), new Sentry.Integrations.Breadcrumbs({ console: !configKeys.sentry.breadcrumbsDisabled }) ], sampleRate: configKeys.sentry.sampleRate, tracesSampleRate: configKeys.sentry.tracesSampleRate });

How are you getting stuck?

Not able to figure out how to get sentry parse the source maps correctly.

Where in the product are you?

Issues - Source Maps

Link

https://splashlearn-alternate.sentry.io/

DSN

https://edd5d7125eea06a49fc723dab9b75e38@o1149125.ingest.us.sentry.io/4506914637545472

Version

React: 7.21.1

Metadata

Metadata

Assignees

No one assigned

    Projects

    Status

    Waiting for: Community

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions