-
-
Couldn't load subscription status.
- Fork 1.7k
Description
Is there an existing issue for this?
- I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues
- I have reviewed the documentation https://docs.sentry.io/
- I am using the latest SDK release https://github.com/getsentry/sentry-javascript/releases
How do you use Sentry?
Sentry Saas (sentry.io)
Which package are you using?
@sentry/vue
SDK Version
7.23.0
Framework Version
Vue 3.2.40
Link to Sentry event
Steps to Reproduce
We have a virtual server (Inside a VS Code webview, they use a ServiceWorker to simulate it internally), that hosts our assets under a dynamic subdirectory, which is in fact the full path to the file on the users system. As such the filenames in the reported Sentry stack traces include prefix and don't match the uploaded source maps which are uploaded without it. As it is dynamic, I can't just use urlPrefix, so as in similar cases I tried to use RewriteFrames to normalize the uploaded paths to match the actual root Sentry knows about. But... RewriteFrames doesn't do anything in the browser by default when just specifying root, and it looks like I'll have to write my own iteratee. This is not very convenient. I'd rather it just worked given the proper root path to strip even in browser context.
Steps to Reproduce:
- Install Sentry in any web project hosted in a web server subdirectory, yet don't use
urlPrefix, instead try to useRewriteFramesto normalizes the paths.
Expected Result
RewriteFrames should support such scenarios.
Actual Result
It doesn't do anything due to the check at
| if (isWindowsFrame || startsWithSlash) { |