Select the first application frame by default #48
Labels
Priority: Medium
Try to fix the issue for the next patch/minor release
Semver: Patch
A bug fix
Type: Bug
The issue has indentified a bug
Package version
3.2.2
Describe the bug
The frame that is selected by default is always the first (index=0) https://github.com/poppinss/youch/blob/develop/src/Youch.js#L136-L138
However, the selected frame should be the first application frame, to better inform the user where they can change the code.
In case the error is thrown internally by some npm library, the selected frame is not the application frame, but the library frame (even if "show all frames" is not active). That means a hidden frame is selected.
Reproduction repo
No response
The text was updated successfully, but these errors were encountered: