'Is it possible to get a stack trace for chrome console warning?

React warned me about bad state logic somewhere:

Warning: setState(...): Can only update a mounted or mounting component. This usually means you called setState() on an unmounted component. This is a no-op.

When I click the line number, it points to a console.warn line in the React source code. How can i see where in my code the warning is coming from? Is there a way to get a stack trace from warn?

It's hard to track down when there's > 20 distinct components.



Solution 1:[1]

Google chrome show stack traces for warnings: enter image description here

But chromium does not: 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
Solution 1 user