Skip to content
This repository was archived by the owner on Jan 27, 2025. It is now read-only.
This repository was archived by the owner on Jan 27, 2025. It is now read-only.

Unable to use RawFileBrowser from local Library #186

Closed
@Heartless49

Description

@Heartless49

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions