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

Most upvoted comments

🎉 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

"react-sortablejs": "^6.0.0",
"sortablejs": "^1.12.0",

BUT

I found that when using react-sortablejs, we don’t have to mount the plugin, adding multiDrag with nothing else just works

import ReactSortable from 'react-sortablejs';

// ...
<ReactSortable   multiDrag /*...*/ />

Same issue here after a yarn upgrade 😕

This is still an issue