filemanager icon indicating copy to clipboard operation
filemanager copied to clipboard

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

Open rankun203 opened this issue 6 years ago • 1 comments

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)

rankun203 avatar Dec 10 '18 14:12 rankun203

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.

kvolkovich-sc avatar Dec 10 '18 14:12 kvolkovich-sc