I try to implement Drag and Drop in a Table by implementing the dragDropOption.
I added the top level DndProvider using the defaults, but I get the “Expected drag and drop context” Error on render.
react-dnd version is 15.1.2
I try to implement Drag and Drop in a Table by implementing the dragDropOption.
I added the top level DndProvider using the defaults, but I get the “Expected drag and drop context” Error on render.
react-dnd version is 15.1.2
Hi @volker-vivid-granite , this is the issue from react-dnd Getting "Uncaught Invariant Violation: Expected drag drop context" error despite the fact everything is wrapped in DndProvider · Issue #3349 · react-dnd/react-dnd · GitHub, you can try to fix by applying this suggestion in your config
resolve: {
alias: {
'react-dnd': path.resolve('../node_modules/react-dnd')
}
},
Dear @volker-vivid-granite,
was the response helpful and is the issue now solved or are there some additional questions? If it is solved, please, use the checkbox to mark the solution to your problem so that other users also know what helped to your case.
all the best from the Discourse team