question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Used package classed as unused

See original GitHub issue

I’m working on a fork for babel and noticed that it classified lodash as “NOTUSED?” when the codebase did have require("lodash/...") and import ... from "lodash/..." which makes me think that this package doesn’t take into account when a dependency is used indirectly. Is there a way to fix that?

Issue Analytics

  • State:open
  • Created 5 years ago
  • Comments:9

github_iconTop GitHub Comments

1reaction
rumplcommented, Oct 23, 2018

@Berkmann18 I just cloned your repo and ran depcheck in the packages/babel-cli directory and I get this:

➜  babel-cli git:(master) npx depcheck
Missing dependencies
* rimraf

depcheck shows correctly that babel-cli uses rimraf in test/index.js but doesn’t list it as a dependency in its package.json file.

Note that depcheck doesn’t support monorepos, you need to run it for each package.

0reactions
Berkmann18commented, Nov 2, 2019

For now, perhaps, I haven’t used this functionality since so it might still be an issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Find unused npm packages in package.json - Stack Overflow
You can use an npm module called depcheck (requires at least version 10 of Node). Install the module: npm install depcheck -g or...
Read more >
How to Check if You Have Unused Dependencies in Your ...
Npm-check's job is to check if your packages are all up-to-date and in use. This package provides a beautiful summary of the packages...
Read more >
Peer dependencies still showing as "unused" after being ...
If I've installed a package because of peer-dependency ... to X which X has peerDependencies to Y . Both of them will be...
Read more >
How do you list unused electronics in a shelf worn package?
Used - Very Good: A well-cared-for item that has seen limited use but remains in great condition. The item is complete, unmarked, and...
Read more >
Item condition by category - eBay
Brand new: The book is new, unread, and unused in perfect condition with no ... The item may be missing original packaging and...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found