TypeError: manager.getActions is not a function with latest react-dnd version (9.3.2 at time of writing)
See original GitHub issueReproduction: https://codesandbox.io/s/react-dnd-example-11-ow923
Potentially related to the removal of DragDropContext (replaced by DndProvider)
Issue Analytics
- State:
- Created 4 years ago
- Reactions:7
- Comments:19 (9 by maintainers)
Top Results From Across the Web
how to fix the error (is not a function) in react - Stack Overflow
hello I am learning react and currently I stumble on an error message: (TypeError: newsData.map is not a function) in my browser when...
Read more >TypeError: manager.getActions is not a function with latest react-dnd ...
TypeError : manager.getActions is not a function with latest react-dnd version (9.3.2 at time of writing). Last Updated on:Wed, 06 Jan 2021 00:46:15...
Read more >Troubleshooting - React DnD - GitHub Pages
Troubleshooting. This page is dedicated to the problems you might bump into while using React DnD. Could not find the drag and drop...
Read more >dispatch is not a function' inside of my alert.js action file ...
I am new to using Redux. I have made a reducer and action to have an alert display whenever an item is saved....
Read more >A Guide to Common React Errors
Error: Objects are not valid as a React child ... If not, you could write a function to generate IDs prior to rendering...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

I completely forgot to link that, my bad: https://github.com/LouisBrunner/dnd-multi-backend/tree/next/packages/react-dnd-multi-backend#migrating-from-3xx
react-dnd 9.x.xintroducesDnDProviderwhich creates the backend and provides arguments (context, manager and extra args), thus the previous syntax of callingTouchBackendwith arguments and passing it toreact-dnddoesn’t work anymore.You will have to transform your pipeline from
to
Just to keep you up to date, I am preparing a new version (probably 4.0.0) on the
nextbranch that will fix this issue by supporting the new>= 9.0.0react-dnd API.However react-dnd non-esm builds are completely broken (wrong entry point, wrong imports…) so it will have to wait until that is fixed. In the meantime, I will update
3.x.xto forbid usage of newer react-dnd.