-
-
Notifications
You must be signed in to change notification settings - Fork 98
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Inspector: Can't get to owner of nested component if the owner only contains the component #545
Comments
does using the up arrow for parent selection work for you? also see #531 (comment) |
No, it gives App.svelte instead of NestingP.svelte. So basically if there's a nested component but nothing else in the parent component it's not detected at all. |
oh, in that case the component is not selectable with the current implementation of svelte-inspector. The information which file/position to open is attached to dom nodes and svelte inspector finds them. No dom node, no find. We could look into the possibility of scanning for comment nodes too but that could get tricky. Going to mark this as edge-case. It may ultimately need help from svelte compiler to get fixed. |
Describe the bug
In the inspector I can't get to the owner of nested component when hovering if the owner only contains the component.
Maybe it's supposed to be like that but I would like to be able to get to the owning component because I had set props there (not showing that in the repro example though).
In my real project I see
in the devtools element list but maybe the inspector doesn't use those?
Reproduction URL
https://stackblitz.com/edit/vitejs-vite-jwrile?file=src/lib/NestingP.svelte
Reproduction
Logs
No response
System Info
The text was updated successfully, but these errors were encountered: