Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resolving sourcemaps #127

Closed
XBDRX opened this issue Sep 13, 2015 · 6 comments
Closed

Resolving sourcemaps #127

XBDRX opened this issue Sep 13, 2015 · 6 comments
Milestone

Comments

@XBDRX
Copy link

XBDRX commented Sep 13, 2015

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?

@eriwen
Copy link
Member

eriwen commented Sep 13, 2015

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?

@auchenberg
Copy link

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?

@eriwen
Copy link
Member

eriwen commented Sep 20, 2015

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.

@eriwen eriwen added this to the 1.0 milestone Sep 20, 2015
@eriwen
Copy link
Member

eriwen commented Oct 25, 2015

@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.

@eriwen
Copy link
Member

eriwen commented Nov 29, 2015

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
Labels
None yet
Development

No branches or pull requests

4 participants
@eriwen @auchenberg @XBDRX and others