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.

Request: Move popper.js dependency to peer-dependencies

See original GitHub issue

Just kicking around the idea here… this is a wrapper project that should be generally forward compatible with non-breaking changes. That said, it is slightly annoying whenever I need to test popper.js@next functionality or worse yet, if a breaking change came with popper.js, I’m stuck with whatever build react-popper is on due to the direct dependency.

My suggestion is to change it to a peer dependency. This allows people who want to use an alternate version of popper.js to use it.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:24 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
jony89commented, Mar 22, 2018

@souporserious popper-js totally should be a peerDependecy, for two main reasons :

  1. testing, allow to easily mock popper-js (see https://github.com/FezVrasta/popper.js/issues/478 if u want to know why)
  2. force to have only one instance of popper-js in the final bundle that is specified in the main project.

I think this issue should be open.

I can create a PR once I know the approach is acceptable

0reactions
jony89commented, Mar 22, 2018

And my last comment as well :

it needs to have fine control over its version to be able to work properly.

Correct, and that’s exactly what peerDependency allows u to do 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

@popperjs/core - npm
Start using @popperjs/core in your project by running `npm i ... DOM context: They often require the tooltip move outside of its original ......
Read more >
NPM incorrect dependency resolution order - Stack Overflow
I'm working on a ReactJS application, which is failing to start for me ... root react-popper@0.10.4 is moved to reactstrap sub-dependencies)
Read more >
react-popper | Yarn - Package Manager
Fast, reliable, and secure dependency management.
Read more >
popper.js versions and peer dependencies
Online Peer dependency version tool to search for compatible versions of related NPM packages.
Read more >
Building Simple Rails with React Web application and ...
You must install peer dependencies yourself. npm WARN bootstrap@5.1.3 requires a peer of @popperjs/core@^2.10.2 but none is installed. You must ...
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