getsentry / sentry-javascript-bundler-plugins

JavaScript Bundler Plugins for Sentry
https://sentry.io
BSD 3-Clause "New" or "Revised" License
131 stars 34 forks source link

The sourcemap has been uploaded, but the error still cannot be displayed normally. #426

Open wuhaohuang opened 10 months ago

wuhaohuang commented 10 months ago

Environment

What version are you running? Etc. "@sentry/vue": "^7.74.0", "@sentry/vite-plugin": "^2.8.0",

The sourcemap has been uploaded and can be seen in the background, as shown in the figure: image

init: Sentry.init({ app, dsn: 'xxxxxxxxxxxxxxxxxxx', integrations: [ new Sentry.BrowserTracing({ routingInstrumentation: Sentry.vueRouterInstrumentation(router), }), new Sentry.Replay(), ], tracesSampleRate: 1.0, tracePropagationTargets: [window.location.origin], replaysSessionSampleRate: 0.1, replaysOnErrorSampleRate: 1.0, environment: import.meta.env.VITE_BUILD_ENV, release: '1.0.4', dist: 'ts-1.0.0', });

upload: sentryVitePlugin({ org: 'xxx', project: 'xxxxxx', authToken: 'xxxxxxx', url: 'xxxxxxx', release: { name: '1.0.4', uploadLegacySourcemaps: { paths: ['dist'], ignore: ['./node_modules'], }, dist: 'ts-1.0.0', }, sourcemaps: { assets: 'dist/static/js/**', ignore: ['node_modules'], }, })

image

pls help!

I don't know if it has anything to do with this. There is no more effective information other than this. image

lforst commented 10 months ago

Hi, please refer to this guide to troubleshoot your source maps: https://docs.sentry.io/platforms/javascript/sourcemaps/troubleshooting_js/legacy-uploading-methods/

I also recommend upgrading the version of your self-hosted instance.