#Stack Frame Not Matching Artifact Name

12 messages · Page 1 of 1 (latest)

sweet obsidian
#

I have a question with uploading source maps. I have Angular application that is using Ionic Capacitor.

When I log an error to Sentry, the error is reported correctly, but I am unable to get the source maps to work correctly.

I have attached screenshots and it seems that the source maps are uploaded correctly.

fluid fern
#

the screenshot is showing the uploaded bundle, can you search for the file in the bundle and confirm it is uploaded with the correct path?

sweet obsidian
#

I just did a quick search and didn't upload with the correct path.

I used ionic build --prod and then used the following commands to upload the source maps

  • sentry-cli sourcemaps inject --org <org_name> --project comworker-mobile ./www --dist 4.2.12
  • sentry-cli sourcemaps --release [email protected] upload --org <org_name> --project comworker-mobile ./www --dist 4.2.12

I removed org name in case that was violating any community rules

fluid fern
#

the command looks fine
what is the path of the uploaded file?
if you need to remove folders from the start of the path, you point the cli command to the folder directly.
like: if the path is ~/app/file.js you can point the command to ./www/app/

#

it does not violate guidelines, but users are usually not confortable sharing org names in public.
if we end needing the name we ask for it 🙂

sweet obsidian
#

So in regards to the path of the uploaded file, the www is at the root level of the project.

#

And I also ran the command at the root level

fluid fern
#

you can point to the folder where the minified and sourcemaps are

sweet obsidian
#

So do you mean pointing it here?

fluid fern
#

i am going offline now but other members of the team are starting

sweet obsidian
#

For reference, the above image is from the www folder