OpusCapita / filemanager

React based FileManager for browser ( + FS REST API for Node.js and Express)
https://demo.core.dev.opuscapita.com/filemanager/master/?currentComponentName=FileManager&maxContainerWidth=100%25&showSidebar=false
Apache License 2.0
566 stars 122 forks source link

Could not find the drag and drop manager in the context of Row #243

Open rankun203 opened 5 years ago

rankun203 commented 5 years ago

This library is having issue with my react app, I'm thinking it might be due to the Context API changes, I'm using React 16.7.0. I had similar issues which react-router also cannot find the context.

The Error:

Uncaught Error: Could not find the drag and drop manager in the context of Row. Make sure to wrap the top-level component of your app with DragDropContext.

  at invariant (/app/node_modules/@opuscapita/react-filemanager/lib/index.js:832)
    at new DragDropContainer (/app/node_modules/@opuscapita/react-filemanager/lib/index.js:7436)
    at constructClassInstance (/app/node_modules/react-dom/cjs/react-dom.development.js:12481)
    at updateClassComponent (/app/node_modules/react-dom/cjs/react-dom.development.js:14297)
    at beginWork (/app/node_modules/react-dom/cjs/react-dom.development.js:15110)
    at performUnitOfWork (/app/node_modules/react-dom/cjs/react-dom.development.js:17817)
    at workLoop (/app/node_modules/react-dom/cjs/react-dom.development.js:17857)
    at HTMLUnknownElement.callCallback (/app/node_modules/react-dom/cjs/react-dom.development.js:149)
    at Object.invokeGuardedCallbackDev (/app/node_modules/react-dom/cjs/react-dom.development.js:199)
    at invokeGuardedCallback (/app/node_modules/react-dom/cjs/react-dom.development.js:256)
kvolkovich-sc commented 5 years ago

Oh. Looks like we need to migrate Filemanager to newer React version.

Due to we don't use React higher than 16.2.0 in our other projects yet, I can't predict any ETA for this migration. 😞

If someone have time, PRs are welcome.