dnd-kit icon indicating copy to clipboard operation
dnd-kit copied to clipboard

Sortable in @dnd-kit/dom is unusable

Open baiye0 opened this issue 1 year ago • 1 comments

Module '"@dnd-kit/dom"' has no exported member 'Sortable'. image

baiye0 avatar Aug 01 '24 09:08 baiye0

i think u need to install npm install @dnd-kit/sortable and import from there

maybe check this link https://docs.dndkit.com/presets/sortable

kaaappi avatar Aug 12 '24 09:08 kaaappi

hi, I have the same problem. I using the vanilla version. Link here: https://next.dndkit.com/concepts/sortable

JiuRanYa avatar Oct 23 '24 02:10 JiuRanYa

I just check the code, you need to import as this: import { Sortable } from '@dnd-kit/dom/sortable'

JiuRanYa avatar Oct 23 '24 02:10 JiuRanYa

Updated in https://github.com/clauderic/dnd-kit/commit/b5e5962ea690f3338b67186b477ae64e238af30f, sorry about that!

As @JiuRanYa mentioned, you need to import { Sortable } from '@dnd-kit/dom/sortable'

clauderic avatar Oct 23 '24 16:10 clauderic