You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 16, 2025. It is now read-only.
I'm not sure it's related, but since of today depcheck started reporting incorrect unused dependencies.
Versions
node -v: 14.16.1
npm -v: 6.14.12
depcheck --version: 1.4.2
Extra info
We are using npx depcheck and until yesterday it worked in our CI, starting from today it stopped working.
We didn't change anything, and on the same commit, it worked yesterday it stopped working today.
I tried to figure out what's wrong so I ran the depcheck locally on my laptop and it worked.
I then looked at the depcheck installed globally on my laptop and saw it's from July.
At this point the depcheck version is 1.4.2
Running npx depcheck resulted in this output:
$ npx depcheck --config=./ci/.depcheckrc
No depcheck issue
My assumption is when running npx is that it used the cached version that was on my laptop and after reinstalling it, it downloaded a new version and stopped working.
The thing I don't understand is that depcheck -v returned 1.4.2 both while the behaviour changed.
filipw01, miclud, jineshjin, roman-suru, Jonsy13 and 10 more