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
Yet depcheck seems to think the os module is unused. Also, if I have not installed the 'os' module in package.json, I don't get the missing package warning
The os package is a nodejs core module and shouldn't be installed, see here.
Depcheck filters all the builtin modules that you require or import in your code and hence it will tell you that the package is unused, meaning you don't really need to install it (see the source code of node-os, it just exports the core os module).
Bug Description
In my code, I have:
Yet depcheck seems to think the os module is unused. Also, if I have not installed the 'os' module in package.json, I don't get the missing package warning
Code snippets
Where the dependency is used:
Where the dependency is listed in package.json:
Versions
node -v
: 6.14.3npm -v
: 6.4.1depcheck -v
: 0.6.11Extra info
The example above was just using the good package from the depcheck/depcheck-test-e2e repo on GitHub.
The text was updated successfully, but these errors were encountered: