-
Notifications
You must be signed in to change notification settings - Fork 214
[bug] Attempted import error: 'MultiDrag' is not exported from 'sortablejs' #179
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
If it doesn't work, please let me know, freeze it and I'll try get it sorted. |
related to #178 |
Hi, it doesn't work |
Freezing the version works for me but I'm going back from a 5.x to a 2.x version and might miss many bug fixes and features. |
Remove any code that mounts the multidrag plugin and see if it works. It looks like
You haven't missed much, we wentfrom v2 to v5 in a day because I was adding |
same issue , any solution ? |
Read the migration guide for further guidance. @Eric-Juquel did you try what I said? |
@waynevanson - I knew about Edit: I'm not even using
I did some more tests and found out that Are you absolutely sure you've updated your local deps before testing? |
having this same issue on a staging build but not on local edit: realized it was working locally because it was on version 2.x and staging build was on 5.x . |
@icflorescu It looks like the typescript typings are out of date and that us exporting the plugins is a bug. |
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 exports because of version 1.12.x of sortablejs making an accidental breaking change. fix #179
# [6.0.0](v5.0.5...v6.0.0) (2020-09-27) ### Bug Fixes * **types:** removes MultiDrag and Swap exports from index ([f34c861](f34c861)), closes [#179](#179) ### Build System * **parcel:** replace rollup with parcel 2 ([3876be2](3876be2)) ### BREAKING CHANGES * **parcel:** packagejson#module was removed because the file is no longer being generated. * **types:** it's apparent we're import sortablejs with all plugins mounted. We've had a few bugs come in that MultiDrag no longer exports because of version 1.12.x of sortablejs making an accidental breaking change.
🎉 This issue has been resolved in version 6.0.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
I confirm that it's working now, thanks ! 🎉 |
Thanks! |
I am also facing same issue and these solution is not working for me |
I installed the latest react-sortablejs (6.14.6) but am still getting this error. Can you please confirm the sequence of steps necessary to remove the error 'Attempted import error: 'MultiDrag' is not exported from 'sortablejs'. Thanks! |
Same issue here after a yarn upgrade :/ |
Same issue here
BUT I found that when using import ReactSortable from 'react-sortablejs';
// ...
<ReactSortable multiDrag /*...*/ /> |
# [6.0.0](SortableJS/react-sortablejs@v5.0.5...v6.0.0) (2020-09-27) ### Bug Fixes * **types:** removes MultiDrag and Swap exports from index ([f34c861](SortableJS/react-sortablejs@f34c861)), closes [#179](SortableJS/react-sortablejs#179) ### Build System * **parcel:** replace rollup with parcel 2 ([3876be2](SortableJS/react-sortablejs@3876be2)) ### BREAKING CHANGES * **parcel:** packagejson#module was removed because the file is no longer being generated. * **types:** it's apparent we're import sortablejs with all plugins mounted. We've had a few bugs come in that MultiDrag no longer exports because of version 1.12.x of sortablejs making an accidental breaking change.
This is still an issue |
# 1.0.0 (2024-11-15) ### Bug Fixes * **react-sortable.jsx:** const newList = [...props.list].map((item) => ([c945c6d](c945c6d)) * allow update disabled prop at runtime ([dccdd24](dccdd24)) * fix package versions ([b464971](b464971)) * infra ([1d43f97](1d43f97)) * object-assign errors ([fde561e](fde561e)) * passes clone function to onAdd if cloning ([SortableJS#173](https://github.com/kha333n/react-sortablejs/issues/173)) ([5ff3f4a](5ff3f4a)) * preserve original objects ([362cbd5](362cbd5)) * update dependencies ([b8ca5c2](b8ca5c2)) * update dependencies ([8401a8c](8401a8c)) * **react18:** add `children` to `ReactSortableProps` ([f6b4e2e](f6b4e2e)) * spell 'these' incorrectly ([0656825](0656825)) * **ci:** adds dist/** to git assets ([c46913f](c46913f)) * **remove unnecesary devdependencies:** rmeove innecesary devDependencies ([1000f68](1000f68)) * **semantic:** adds missing github plugin ([f6a7cca](f6a7cca)) * **semantic:** use dist/** glob ([76d1ba0](76d1ba0)) * **semantic:** uses dist/**.* to assets ([6aa4183](6aa4183)) * **types:** removes MultiDrag and Swap exports from index ([f34c861](f34c861)), closes [SortableJS#179](https://github.com/kha333n/react-sortablejs/issues/179) * **util.ts:** changes custom type Omit to extend keyof T ([9db7297](9db7297)) ### Build System * **parcel:** replace rollup with parcel 2 ([3876be2](3876be2)) ### Code Refactoring * help ([1cb872e](1cb872e)) ### Continuous Integration * **semantic:** adds plugin @semantic/git ([5f2b28e](5f2b28e)) ### Documentation * ensure sortablejs and @types/sortablejs are peers dependencies ([1686019](1686019)) ### Features * remove and update dependencies ([65fa886](65fa886)) * **deps:** adds sortablejs and @types/sortablejs as peer dependencies ([d8c2ce4](d8c2ce4)), closes [SortableJS#148](https://github.com/kha333n/react-sortablejs/issues/148) * **deps:** adds sortablejs and @types/sortablejs as peer dependencies ([07da8b9](07da8b9)), closes [SortableJS#148](https://github.com/kha333n/react-sortablejs/issues/148) ### Reverts * prettier preserve semicolons ([a658d04](a658d04)) ### BREAKING CHANGES * **parcel:** packagejson#module was removed because the file is no longer being generated. * **types:** it's apparent we're import sortablejs with all plugins mounted. We've had a few bugs come in that MultiDrag no longer exports because of version 1.12.x of sortablejs making an accidental breaking change. * **semantic:** pushes the changes to the git repository * please, build for me * peer dependencies now required * **deps:** Users want to use their own versions of sortablejs, so we'll allow it. * **deps:** Users want to use their own versions of sortablejs, so we'll allow it.
Describe the bug
Getting this error in a Next.js application since v5 was released:
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.The text was updated successfully, but these errors were encountered: