-
Notifications
You must be signed in to change notification settings - Fork 63
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
feat(react-native): new source maps generation script with support for hermes #1169
feat(react-native): new source maps generation script with support for hermes #1169
Conversation
…utomatic upload to Honeybadger.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tried running this and ran into two issues:
- I couldn't get
npx honeybadger-upload-sourcemaps
to run in my test project until I installed the package globally. I do vaguely remember having a problem with the previousnpx honeybadger-generate-sourcemaps
command as well.. unfortunately I did not write down what I did to fix that 😆. Hopefully the answer was not "install it globally", because that's not the right way to do it. Anyway I don't think this is an issue with this PR, but maybe either you our @subzero10 has an idea for me on this. - After installing globally, the output of the script I got was
Hermes is enabled ...
Error: The Hermes compiler executable for Android was not found in the expected locations.
Happy to help debug, but this is just what I got on the first run.
Yep, I had this issue multiple times as well. I think it works OK if the package is published on npm. |
I don't know of a command to prevent
I made some updates to the script. @BethanyBerkowitz can you please try to run it again? If you get the same error, could you let me know what version of react-native in the |
Yahoo, I saw the upload now! Not sure if it's because of your changes or if I screwed something up before, but definitely an improvement.
My problem now is that I still don't see the sourcemap applied. I tried throwing a JS error using the |
Yes, I'm still working out with @joshuap why the backend isn't applying the uploaded iOS maps, but this PR was more about the introduction of hermes support for Android source maps (for this: #1159 ). iOS are still an outstanding issue that I will look into with a separate PR, as needed. |
@andreybutov Glad to hear the iOS thing is a known issue! I tested using android, and saw the sourcemaps get applied, both in the In the expo app, the script at first errored with |
I create #1182 to track this. |
Note to me:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I left a couple of comments, but nothing blocking!
You're right! I added the additional info to the error message. Thanks! |
@subzero10 I think this PR is good to go. |
Done! This should be available with |
Status
READY
Description
This PR replaces the original honeybadger-generate-sourcemaps.sh script with the honeybadger-upload-sourcemaps.sh script which has support for Hermes, and automatically uploads the generated sourcemaps to Honeybadger. The section on source maps in README.md has also been updated with usage instructions.
Todo