-
Notifications
You must be signed in to change notification settings - Fork 213
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
Webpack traces don't trace back to actual React components #471
Comments
@zachfeldman Frame number 1 in your stack trace looks like it is still minified. I suspect that's the frame that has the actual component. The source map is being applied (you can tell because the filename is Does that sound right? You should be able to fix that by having the first step generate a source map, and pass that as the input source map to the next step. |
@brianr I'm not sure I get what you're saying. To clarify, my process probably isn't typical. I'm trying to not have source maps in production because I'd prefer to obfuscate our code there. Our build process is run on Heroku, not locally - so we build on Heroku whenever new code is pushed. We don't pushed already compiled code to production. The source maps I have were generated by setting the devtool option to Am I just doing this in the wrong way? Is it possible to not have to build locally on every push and still get detailed stack traces? Is it possible to have detailed stack traces without having source mapping on production for end users? |
Also thanks for your help! |
Just a little bump :) We'd love to know what's causing these errors if you have a moment to look at this today. |
Some additional research I did on this: Would |
I am not entirely sure what information one gets from the |
Hi there, I was told to file this issue by Rollbar support. I finally was able to get Source Maps working with my setup - I prefer not to put source maps into production, but only have them in development, so I'm uploading them myself for now. I'm trying to use the example that support referred me to:
https://github.com/rollbar/rollbar.js/tree/master/examples/webpack
but my traces look like this:
Last line of the trace:
It's not tracing back to an actual component file. My components are in files like Single.jsx or BookingWidget.jsx.
Any ideas on how to make the trace more accurate?
The text was updated successfully, but these errors were encountered: