question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error line number in Error Boundary

See original GitHub issue

Hey,

As I can not reopen issue #13790, I opened this.

If you don’t like to fix/add my request, simply say won't fox, but don’t close the issue with simple/not related answer, as @aweary did. React is pro library, you are pro, so act like pros.

Thanks.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:22 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
dehghani-mehdicommented, Mar 28, 2019

@gaearon any update? do you need more info?

2reactions
gaearoncommented, Mar 30, 2022

I believe it fetches a sourcemap and then finds the information in it. I don’t see us including a sourcemap parser into React itself, and definitely not in production.

Do you want this in development or in production?

I think in general, the browsers are best-positioned to fix this by providing a stack trace with sourcemaps applied. I don’t know if there is an existing proposal for this.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error line number in Error Boundary · Issue #13790 - GitHub
Error Boundary shows error message and stack trace. What is the expected behavior? Error Boundary should show error line number (same as browser ......
Read more >
Error Boundaries - React
Error boundaries are React components that catch JavaScript errors anywhere in their child ... Error caught by Error Boundary component with line numbers....
Read more >
Wrong line numbers in component stack trace [TS + React]
I'm adding an error boundary to my client-side React app. In development, I want to display the error with a stack trace in...
Read more >
React Error Handling And Reporting With Error Boundary And ...
In this article, we'll explore the concept of error boundaries in a React application. We'll work through an example app to see how...
Read more >
Catching Errors in React with Error Boundaries
This article is going to introduce you to the concept of error boundaries in React. We'll look at what challenges they try to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found