Unable to use RawFileBrowser from local Library #186
Description
After cloning this repo, and importing it locally to another project for use, I am unable to get RawFileBrowser
to render although this works from the library when installed using npm i
- The error itself comes from react-dnd
though.
Uncaught Invariant Violation: Could not find the drag and drop manager in the context of Ae. Make sure to render a DndProvider component in your top-level component.
This error occurs whether the DndProvider
is setup as the top-level component in my entire project, or even the immediate parent of RawFileBrowser
.
For some context: the other project has other components/features that are already using react-dnd
, and therefore we have a working setup for it - the versions match as well - and for some reason this component doesn't seem to recognize it no matter what is tried.
Using the direct FileBrowser
component proceeds to crash as well by throwing errors about invalid hook usage. I've looked into the possibility of multiple react
or react-dom
installations and that is not the issue.