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

Depcheck does not recognize some true dependencies #837

Open
blaisn opened this issue Oct 2, 2023 · 2 comments
Open

Depcheck does not recognize some true dependencies #837

blaisn opened this issue Oct 2, 2023 · 2 comments

Comments

@blaisn
Copy link

blaisn commented Oct 2, 2023

We use 3 dependencies in our project but they are reported as beeing unused by depcheck:

Unused dependencies
* express-openapi-validate
* swagger-ui-express
Unused devDependencies
* esm-seedrandom

They are imported about the same way in 3 different files:

file 1 express route: import swaggerUi from "swagger-ui-express";
file 2 exoress middleware: import { OpenApiValidator } from "express-openapi-validate";
file 3 utilities: import { prng_alea } from "esm-seedrandom";

I put those 3 deps in the "ignores" section of .depcheckckrc and it then does not report any unused module.

Thanks

@rumpl
Copy link
Member

rumpl commented Oct 2, 2023

We could really use some more information about this issue, could you give us the versions of node, npm, depcheck and ideally the output of depcheck --json (after removing the 3 dependencies from the ignores section)

@blaisn
Copy link
Author

blaisn commented Oct 6, 2023

Hello,
depcheck version 1.4.6
node version 18.18.0 used with nvm1.1.11
npm version 9.8.1
depcheck.txt
Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants