Can't resolve 'react-dnd/lib/DragDropContext' with react-dnd@7.1.0
See original GitHub issueReporting a Bug?
Can’t resolve ‘react-dnd/lib/DragDropContext’ with react-dnd@7.1.0
react-sortable-tree@2.6.0 code:
react-dnd@7.1.0 looks like changed lib/
directory tree. https://github.com/react-dnd/react-dnd/pull/1205:
react-sortable-tree@2.6.0 package.json,will auto update react-dnd@7.x:
"dependencies": {
"frontend-collective-react-dnd-scrollzone": "^1.0.1",
"lodash.isequal": "^4.5.0",
"prop-types": "^15.6.1",
"react-dnd": "^7.0.1",
"react-dnd-html5-backend": "^7.0.1",
"react-lifecycles-compat": "^3.0.4",
"react-virtualized": "^9.19.1"
}
Issue Analytics
- State:
- Created 5 years ago
- Reactions:15
- Comments:16 (2 by maintainers)
Top Results From Across the Web
Can't resolve 'react-dnd/lib/DragDropContext' · Issue #1247
In a major version we removed DragDropContext in favor of the DndProvider react component. The original API was designed when decorators and ...
Read more >Module not found: Error: Can't resolve 'react-beautiful-dnd'
The module is not listed in the list of installed dependencies meaning it's not installed as a dependency for the application.
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 >How to Add Drag and Drop in React with ... - freeCodeCamp
To resolve this, DragDropContext takes in an onDragEnd prop that will allow us to fire a function after dragging has complete. That function ......
Read more >Adding drag-and-drop functionality with react-beautiful-dnd
As we learned above, the first step is to create a DragDropContext that encloses everything we want on our list. In it, we...
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 FreeTop 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
Top GitHub Comments
If you’re using this package in a top-level project, you can use a mechanism like Yarn
resolutions
ornpm-force-resolutions
to override the resolved version ofreact-dnd
and force a good version (like7.0.2
).This did not work for my use case, so I’ve published a forked version of this package as a temporary workaround until this issue is fixed:
fixed-react-sortable-tree
come on~please fix it~~~😭