Closed MartinBarker closed 2 years ago
Hello @MartinBarker , Thank you so much for your contribution. but unfortunately, you are using a different library of ours.
So you have to solutions:
1- move this issue to the library's right repo.
2- replace this library with ours: which installed be npm i react-drag-drop-files
I am trying to make a small example react project that uses this npm package drag and drop file picker: https://www.npmjs.com/package/@yelysei/react-files-drag-and-drop
I made a fresh react project with
npx create-react-app my-app
.I installed the package and added the filesDragAndDrop component to my App.js file like so:
When I run my react project, it starts fine with no errors. but when I visit my home page in chrome, I get a bunch of red console errors that prevent the page from loading
I tried to investigate what this error meant on the linked site:
https://reactjs.org/warnings/invalid-hook-call-warning.html
running
npm ls react-dom
i get this:so 2 versions of react-dom, and the other command shows no results:
and running
npm ls react
shows 2 react versions:is the blocking error I am facing caused by me having multiple react versions installed? or did i configure my component in App.js incorrectly?