floating-ui / react-popper

🍿⚛Official React library to use Popper, the positioning library
https://popper.js.org/react-popper/
MIT License
2.5k stars 226 forks source link

react-popper v1.0 and v2.0 can not use in the same project #434

Closed zww-v5 closed 2 years ago

zww-v5 commented 2 years ago

I have a project that import react-popper v2.0 itself, and the other component that imported in this project uses react-popper v1.0. When I use the popper.scheduleUpdate, it will report "popper.scheduleUpdate is not a function", which obviously calls react-popper v2.0 directly, but this component itself should depend on 1.0. This component in node_modules also has v1.0 installed. do you know what the problem is with this scenario? image image image