'How to see where an error happened in React

I am having errors in my react app but in the console it shows the stack from the compiled code and not the source code. how can I see from where the error comes? enter image description here



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source