nuxt / nuxt/devtools

fix: Components that are used shows up as Unused

Open
#552 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
TypeScript
Stars
3.3k
Forks
214
Avg merge
13h 22m
Merged PRs (30d)
18

Description

🐛 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

https://github.com/nuxt/devtools/issues/358#issuecomment-1868263174
https://github.com/nuxt/devtools/issues/358#issuecomment-1868295864

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the behavior with the linked unused-components project, then trace the unused-components filtering in the Nuxt DevTools code. Confirm which components are used outside the current page and verify that used components no longer appear as unused.

Written by the indexing model from the issue text.

Assessment

Tech stack
nuxt, typescript
Domain
devtools
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.