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.

Unnecessary dependencies on package.json when installing

See original GitHub issue

Even thought most of these dependencies were on my devDependencies, yarn add it to yarn.lock and node_modules:

"dependencies": {
    "babel-core": "^6.25.0",
    "babel-loader": "^7.1.1",
    "babel-runtime": "^6.23.0",
    "prop-types": "^15.5.10",
    "webpack": "^3.3.0"
  },

I believe most of those dependencies should be a devDependency and prop-types is not a dependency, since you use flow

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
bvaughncommented, Oct 20, 2017

Should be fixed in 1.1.0!

1reaction
bvaughncommented, Oct 20, 2017

Whoops! I probably just forked another OSS project I had to create this one and wasn’t careful about cleaning up dependencies. That or I forgot the --dev flag when yarn adding some.

Either way, sorry. I’ll tidy up before the next release.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Find unused npm packages in package.json - Stack Overflow
Install the module: npm install depcheck -g or yarn global add depcheck. Run it and find the unused dependencies: depcheck.
Read more >
Remove unused npm modules from package.json
Remove unused npm modules from package.json ... Depcheck is a tool for analyzing the dependencies in a project to see: how each dependency...
Read more >
How to Check if You Have Unused Dependencies in Your ...
Solution 1. depcheck ; npm install -g depcheck. Second, launch the dependency analyzer simply by: ; depcheck. Third, check the unused dependencies ......
Read more >
Remove unused dependencies from package.json #16840
While working on #16453 I ran npx depcheck to look for unused dependencies, and the result is npx: installed 146 in 6.204s Unused...
Read more >
How to check unused npm packages? - Mario Kandut
Best practice is to remove unused code. Use tools like depcheck or npm-check to find unused dependencies. Thanks for reading and if you...
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