question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can't resolve 'react-dnd/lib/DragDropContext' with react-dnd@7.1.0

See original GitHub issue

Reporting a Bug?

Can’t resolve ‘react-dnd/lib/DragDropContext’ with react-dnd@7.1.0

image

react-sortable-tree@2.6.0 code:

image

react-dnd@7.1.0 looks like changed lib/ directory tree. https://github.com/react-dnd/react-dnd/pull/1205:

image

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:closed
  • Created 5 years ago
  • Reactions:15
  • Comments:16 (2 by maintainers)

github_iconTop GitHub Comments

8reactions
quigleyj-mavenomicscommented, Mar 7, 2019

If you’re using this package in a top-level project, you can use a mechanism like Yarn resolutions or npm-force-resolutions to override the resolved version of react-dnd and force a good version (like 7.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

7reactions
Alexixyccommented, Mar 15, 2019

come on~please fix it~~~😭

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found