Open ajai-am opened 2 weeks ago
Don't worry about this. We are not writing debugId
fields to your source maps so I wouldn't go looking for them.
If some of your .js
files are created without a corresponding .js.map
file that is in 99.999% of the cases a configuration on your end. You likely have some sort of build tooling that doesn't emit source maps.
Can I ask where you got the ignore
option from? It is not part of the API: https://www.npmjs.com/package/@sentry/webpack-plugin#options
hi @lforst thank you for the swift response, appreciate it.
Okey, I was going through the issues list here, to see if someone else if facing the same issue as mine and I came across one of the issue raised talking about the debug ID should be in .js.map. Hence I assumed its the same for me.
The actual reason for raising this issue is, In my sentry error log, I see source code is in unminified version, like below
on clicking the btn I got this popup
But as said earlier, I can see the sourcemap are getting uploaded
any idea what I could be doing wrong here?
Yes, I totally agree that those files are created from my side, unfortunately I could not find the solution to fix for that yet, hence I tried to ignore them from the sourcemap upload.
as for the ignore list, I was using the sourcemaps.ignore
option, looks like when I was trying diff methods to get it fixed, I posted the wrong code above.
I think we need some sort of reproduction to debug this effectively. Maybe can you (in addition to providing repro) also share a link to an event that can't be unminified? Thanks!
I need to check with my manager on the company policy, with regards to providing the access to the codebase.
P.S our company has a paid plan with sentry, is there a different or private support system we can use where we can further discuss on this issue?
You can reach out to support here: https://sentry.zendesk.com/hc/en-us
Hi Team,
I'm facing an issue where sourcemaps are not being injected with a debug ID, and my ignore list is not being considered, although the uploading of sourcemaps seems to be working correctly.
Installed Packages
Project Structure
I have a monorepo React application built using Nx with Webpack.
Steps Followed
I followed the steps mentioned in the Sentry documentation for uploading sourcemaps with Webpack:
Uploading Sourcemaps with Webpack
I used the following command for the setup:
Webpack Configuration
Here is the relevant part of my
webpack.config.js
:Terminal Output
When running the build command:
I see the following debug output:
Issue 1
the output from one of the js file:
config.3848a5bcd19d60a566b0.js
(_._sentryDebugIds=_._sentryDebugIds||{},_._sentryDebugIds[e]="4a63fb18-e873-48d1-a3b4-5d76a45cc553",_._sentryDebugIdIdentifier="sentry-dbid-4a63fb18-e873-48d1-a3b4-5d76a45cc553")}catch(_){}}();
has the following line added but in
config.3848a5bcd19d60a566b0.js.map
the sentry debug id is missing
Issue 2
Contents of
styles.44cd59f2baeb4652.js
Some how this file is created without a *.js.map file, when investigated it had only the code related to sentry.
Note: I have a files with the pattern of styles.xxx.css & styles.xxx.css.map
Additional Notes
I would appreciate any guidance or solutions to these issues. Thank you!