KarimMokhtar / react-drag-drop-files

Light and simple Reactjs drag and drop files library to use with very flexible options to change, so you put whatever the design you want for your drop-area. Users can drag and drop or even select the file anywhere in the window.
MIT License
248 stars 91 forks source link

Missing dependency #80

Open uki-strzelecki opened 2 years ago

uki-strzelecki commented 2 years ago

Hi, I just stumbled upon this and tried it. I got an error about missing dependency:

.yarn/unplugged/styled-components-virtual-9691129a54/node_modules/styled-components/dist/styled-components.browser.esm.js:1:0 Module not found: styled-components tried to access react-is (a peer dependency) but it isn't provided by its ancestors; this makes the require call ambiguous and unsound.

Required package: react-is Required by: styled-components@virtual:dde1fece8d8008abee890dec5f02170cbc3b5cdb45cbb9d1ca588b2aa4603145e4ef83b240eb2a9151decb9c17e0a486ce3a63bf43859945391f42be84a31faf#npm:5.3.5 (via /.yarn/unplugged/styled-components-virtual-9691129a54/node_modules/styled-components/dist/)

Ancestor breaking the chain: babel-plugin-styled-components@virtual:9691129a54311d74830d740c933802844a8e85eee8626ffd8747a04d20f491beb3d342fdfc48789f23db385d47e5af24cec6536671e9ebffc31889eb0fa7cdd8#npm:2.0.7 Ancestor breaking the chain: react-drag-drop-files@virtual:dc3fc578bfa5e06182a4d2be39ede0bc5b74940b1ffe0d70c26892ab140a4699787750fba175dc306292e80b4aa2c8c5f68c2a821e69b2c37e360c0dff36ff66#npm:2.3.7

This is next.js project and is using yarn package manager with pnp. yarn version: 3.2.1 node version: 17.9.1 next.js: 12.1.6

Installing dependency works. Cheers