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

The line number of the error code does not match the actual number #528

Closed
3 of 5 tasks
yongqianvip opened this issue Jan 9, 2019 · 3 comments
Closed
3 of 5 tasks

Comments

@yongqianvip
Copy link

yongqianvip commented Jan 9, 2019

OS:

  • Windows
  • MacOS
  • Linux

Platform:

  • iOS
  • Android

Output of node -v && npm -v && npm ls --prod --depth=0

node v10.14.1
npm v6.4.1
react-native v0.55.3
react-native-sentry v0.38.3

Config:

Sentry.config('__MY_DSN__'}).install()

I have following issue:
When an exception occurs, the APP reports the error message to the SENTRY background, but on the website, it does not highlight the right line number of the error code
The sourcemap and jsbundle were uploaded automatically by script in Xcode or AndroidStudio

Steps to reproduce:

SOURCE CODE

sourcecode-mark

error-red

error-ios

android-report

Actual result:

  • I got the right description but a wrong line number of the error code

Expected result:

  • right description and a right line number of the error code
@minhducit83
Copy link

same issue

@yongqianvip
Copy link
Author

Maybe, it is my fault.
The project which i mentioned in this question is a demo, i dropped it, and in another project, it works well, maybe i do something wrong, I am sorry, I will close this issue

@HazAT
Copy link
Member

HazAT commented Feb 11, 2019

It's a long lasting issue with react-native itself generating wrong source maps.
There is not much we can do about it, just always be sure to be on the latest RN version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants