Giter Club home page Giter Club logo

Comments (4)

getsantry avatar getsantry commented on June 25, 2024

Assigning to @getsentry/support for routing ⏲️

from sentry-javascript-bundler-plugins.

Lms24 avatar Lms24 commented on June 25, 2024

Hi @Lvovk!

I think the problem is much rather that there is no stack trace rather than the source code not being unminified with the uploaded source maps. Since you're using Sentry SaaS (sentry.io), can you post a link to the event in Sentry?

Furthermore, to debug this please:

  • tell us your SDK version
  • show your Sentry.init code
  • tell us how to reproduce this behaviour in a minimal reproduciton.
    Or, ideally, provide a Stackblitz/GH repo or similar with a working minimal reproducible example. thanks!

from sentry-javascript-bundler-plugins.

Lvovk avatar Lvovk commented on June 25, 2024

Hi @Lms24 ! Thanks for the answear !

Link to the event: https://notsy-b-v.sentry.io/issues/5168873424/events/2fd0e174c105437196a0a3e053d5260e/
My SDK version is 7.106.0
My Sentry init looks like this (img 1)

How to reproduce:

  1. I use webpack plugin, which is suposed to load sourcemap to sentry and it seems to do it
  2. I have added mock errors (tried "Throw" experssions, syntax errors and ETC) inside my code and started the page
  3. I see those errors on sentry, but can't see the trace

image

from sentry-javascript-bundler-plugins.

Lms24 avatar Lms24 commented on June 25, 2024

I have added mock errors (tried "Throw" experssions, syntax errors and ETC) inside my code and started the page

I looked at the event you linked and I can confirm that the SDK did not send a stack trace to Sentry. How exactly are you throwing and capturing this error? Are you using Sentry.captureMessage/Sentry.captureException or are you simply doing something like throw('test string')? Also where are you throwing the error? Any chance it's directly in a <script> tag? On button click?

Generally, the SDK should try to generate a stack trace, even if the value that's captured (e.g. just a string) doesn't have a stacktrace attached. So I'm wondering where things go wrong here.

As you can see, there are quite a few variables to debug this properly. I assume you're adding Sentry to a non-trivial application - any chance you can narrow it down to a more minimal example and post it as a stackblitz or GitHub repo?

from sentry-javascript-bundler-plugins.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.