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.

Set overmind as peerDependency in overmind-react and other packages

See original GitHub issue

Because we cannot use overmind-react without overmind, we can set overmind as peerDependency in overmind-react and other same packages (overmind-angular, overmind-vue)

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:9 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
luisherranzcommented, Feb 22, 2019

It’s not problematic in most cases, it’s just the way it’s usually done in npm.

The only problem I see is a possible conflict in the case somebody wants to use a fork/alternative to the main overmind package (for a bug fix or added feature which is not in the official one). They would end up with an overmind@next from overmind-react and their own overmind version installed from GitHub or with a different name. They can solve it forking overmind-react as well so it’s not a big deal.

1reaction
luisherranzcommented, Feb 10, 2019

I was about to open this issue as well. With a peer dependency the user can choose what overmind version to install. It may not be overmind: next like it is “hardcoded” right now.

Also, I don’t see a problem with npm install overmind overmind-react because it’s already a common pattern with many other tools: react and react-dom, mobx and mobx-react, redux and react-redux and so on…

Read more comments on GitHub >

github_iconTop Results From Across the Web

npm Peer Dependencies - JavaScript inDepth
Your project relies on packages from the npm Registry. ... When my package depends on another package, should I put it in dependencies...
Read more >
Peer Dependency Not Hoisting Along With Other Package
when I try to install the missing dependency it fails on some other missing dependency causing a sad circle of fail. > yarn...
Read more >
Should I duplicate "peerDependencies" in "dependencies ...
So while installing packages using npm install , NPM will attempt to install an optional dependency too. But if it isn't able to...
Read more >
Peer Dependencies | Node.js
The Problem: Plugins. There's one use case where this falls down, however: plugins. A plugin package is meant to be used with another...
Read more >
Understanding Peer Dependencies in JavaScript
Peer dependencies really come into play when you're developing code that will be used by others, such as plugins and packages.
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