Skip to content

Resolving sourcemaps #127

Closed
Closed

Description

@XBDRX

Hi

I'm using Gulp+Webpack+React. I've added stacktrace.js to the mix but the exception files and line numbers are always reported in the bundles rather than the original files.

I've previously used stacktrace (stable build) with Gulp+Webpack+Angular without problem so am I just doing something wrong?

Activity

  1. eriwen commented on Sep 13, 2015

    @eriwen
    Member

    I'm going to assume that you're using the version of stacktrace.js that is on the master branch (basically 1.0 beta) which supports sourcemaps.

    We got a question similar to this a few months back. They provided an example repo.

    Depending on the reason sourcemaps aren't resolved, there may be useful information in the Promise errback function. This change fixed the other issue.

    If the example repo doesn't help you fix your problem, could you please provide more detail or an example so we can help you further?

  2. auchenberg commented on Sep 17, 2015

    @auchenberg

    Using https://github.com/mbrgm/stacktrace-js-sourcemaps-example/pull/1/files, I'm seeing some wrong request made by stacktrace.js where the webpack:// protocol prefixes are included, which for obvious reasons makes the requests fail.

    From Chrome DevTools console:
    test-1

    Are these prefixes not supported, or is it a bug within stacktrace-gps?

  3. eriwen commented on Sep 20, 2015

    @eriwen
    Member

    This should be working correctly since stacktracejs/stacktrace-gps#18 has been merged and pushed.

    Would be awesome if someone other than I can confirm that.

  4. added this to the 1.0 milestone on Sep 20, 2015
  5. eriwen commented on Oct 25, 2015

    @eriwen
    Member

    @gbaumgart The best way to do that is to enable offline mode. All stacktrace.js methods accept {offline: true} which prevents all network requests. In the future, we may give an option to specifically disable source maps.

  6. eriwen commented on Nov 29, 2015

    @eriwen
    Member

    I believe the OP's request was fulfilled here. Please open a new issue if there is anything unaddressed here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions