react
react copied to clipboard
[DevTools Bug]: Not seeing source / file path
Website or app
Repro steps
Open react dev tools in browser Select a react component from the tree Notice that no Source (file path) is printed in the bottom right panel (see description screenshot in https://github.com/facebook/react/pull/17567)
How often does this bug happen?
Every time
DevTools package (automated)
No response
DevTools version (automated)
No response
Error message (automated)
No response
Error call stack (automated)
No response
Error component stack (automated)
No response
GitHub query string (automated)
No response
@jschuler: We're sorry you've seen this error. ❤️
It looks like you forgot to specify a valid URL. (This means that we will not be able to reproduce the problem you're reporting.)
Please help us by providing a link to a CodeSandbox (https://codesandbox.io/s/new), a repository on GitHub, or a minimal code example that reproduces the problem. (Screenshots or videos can also be helpful if they help provide context on how to repro the bug.)
Here are some tips for providing a minimal example: https://stackoverflow.com/help/mcve
Issues without repros are automatically closed but we will re-open if you update with repro info.
Thank you for providing repro steps! Re-opening issue now for triage.
Hei @jschuler ,maybe i'm missing something but react dev tool won't be able to render source file for a prod build because of how bundling works? It does do that for dev builds tho as far as i can see, if that's what you meant?
a good solution to splitting UI and business logic, see: https://github.com/hawx1993/hooks-view-model