Request: Move popper.js dependency to peer-dependencies
See original GitHub issueJust 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:
- Created 6 years ago
- Reactions:1
- Comments:24 (9 by maintainers)
Top 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 >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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@souporserious
popper-js
totally should be a peerDependecy, for two main reasons :popper-js
(see https://github.com/FezVrasta/popper.js/issues/478 if u want to know why)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
And my last comment as well :
Correct, and that’s exactly what peerDependency allows u to do 😃