Skip to content
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

fix: Components that are used shows up as Unused #552

Open
metkm opened this issue Dec 23, 2023 · 1 comment
Open

fix: Components that are used shows up as Unused #552

metkm opened this issue Dec 23, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@metkm
Copy link

metkm commented Dec 23, 2023

πŸ› The bug

Filtering for unused components shows components that are used as unused. I think (?) it shows only components that are used on the current page

πŸ› οΈ To reproduce

https://github.com/metkm/unused-components

🌈 Expected behavior

Shouldn't show used components as not used

ℹ️ Additional context

#358 (comment)
#358 (comment)

@metkm metkm added the bug Something isn't working label Dec 23, 2023
@antfu
Copy link
Member

antfu commented Dec 27, 2023

This is due to Nuxt was mistakenly warming up all routes, which has been fixed in the latest version, so the currently the inspector only knows the components on the current page.

We will need to add a button like "Scan components for all routes" to allow users to bring the behavior back manually.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants