react-sortablejs: [bug] Attempted import error: 'MultiDrag' is not exported from 'sortablejs'
Describe the bug Getting this error in a Next.js application since v5 was released:
error - ./node_modules/react-sortablejs/dist/index.es.js
Attempted import error: 'MultiDrag' is not exported from 'sortablejs'.
Information This is required. Issues without this critical information will be closed.
Versions: react-sortable = ^5.0.4 react = 16.13.1
The only thing that works for me is freezing react-sortable version to 2.0.11
exactly.
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Reactions: 7
- Comments: 18
Commits related to this issue
- fix(types): removes MultiDrag and Swap exports from index BREAKING CHANGE: it's apparent we're import sortablejs with all plugins mounted. We've had a few bugs come in that MultiDrag no longer export... — committed to SortableJS/react-sortablejs by waynevanson 4 years ago
- chore(release): 6.0.0 [skip ci] # [6.0.0](https://github.com/SortableJS/react-sortablejs/compare/v5.0.5...v6.0.0) (2020-09-27) ### Bug Fixes * **types:** removes MultiDrag and Swap exports from ind... — committed to SortableJS/react-sortablejs by semantic-release-bot 4 years ago
- chore(release): 6.0.0 [skip ci] # [6.0.0](https://github.com/SortableJS/react-sortablejs/compare/v5.0.5...v6.0.0) (2020-09-27) ### Bug Fixes * **types:** removes MultiDrag and Swap exports from ind... — committed to rlconsult/react-animation by semantic-release-bot 4 years ago
🎉 This issue has been resolved in version 6.0.0 🎉
The release is available on:
Your semantic-release bot 📦🚀
I am also facing same issue and these solution is not working for me ‘Attempted import error: ‘MultiDrag’ is not exported from ‘sortablejs’.’
Same issue here
BUT
I found that when using
react-sortablejs
, we don’t have to mount the plugin, addingmultiDrag
with nothing else just worksSame issue here after a yarn upgrade 😕
This is still an issue